Menu

Why my voice assistant read "M10, 8.8, 49" — and how I fixed table lookups for spoken questions
📰

Why my voice assistant read "M10, 8.8, 49" — and how I fixed table lookups for spoken questions

DEV Community: ios·Kris Russell·3 days ago
#zxJkmtTJ
#devtoios#devto#dev#question#documents
Long article (641 words) — no AI summary yet.
Reading 0:00
15s threshold

I built Reverbot , the iPhone app this is about. This post is about one feature, Job mode, and a retrieval problem anyone building "ask your documents" tools will hit.

Job mode is for work where your hands are busy. You upload your own manuals, SOPs, spec sheets and parts lists, each set in its own workspace. Then, through your earbuds, you ask: "hey job, what's the torque for an M10 grade 8.8 bolt?" The requirement is strict: the exact value from your sheet, or a plain "that isn't in your documents". A plausible guess is worse than no answer.

What went wrong

The first version did what most retrieval tutorials do. It cut each document into runs of sentences about 400 characters long, found the runs that best matched the question, and gave them to the AI to answer from.

That works for prose and fails for tables. A torque chart reached the AI as "M10,8.8,49", with the column headings three passages away. Nothing in the text the AI saw said which number was the torque.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.