Skip to main content

LLMWhisperer

The LLM Whisperer connector turns a document into text that keeps its layout, so later steps can read tables, forms and scanned pages. Mention it as @llm_whisperer. It works with PDF, Word, Excel, CSV and image files, and uses your own LLMWhisperer account.

Connect​

Create the credential with your LLMWhisperer API Key. The LLMWhisperer documentation covers getting one. Connectors, instances and credentials covers the rest of the setup.

SettingDefaultWhat it does
API Hosthttps://llmwhisperer-api.us-central.unstract.comChange it if your LLMWhisperer account is in another region.
Processing ModeForm (structured documents)How the document is read. See below.
Output ModeLayout PreservingLayout Preserving keeps columns and tables in place. Text returns plain text.
Max Polling Time3,600 secondsHow long a step waits for the text, from 3 to 3,600. A step whose extraction is still running when the time is up fails, but the extraction still finishes in your LLMWhisperer account, so running the workflow again extracts the document twice. An update to Flow restarts the workers that run steps, and a step still running about 17 minutes after the restart begins is stopped and fails. Flow doesn't start it again, because the extraction it sent may still finish in your LLMWhisperer account. A fraction is rounded down: 2.5 counts as 2.
Polling Interval2 secondsHow often it checks, from 1 to 10. A fraction is rounded down: 2.5 counts as 2.

Processing Mode offers Native Text (digital PDFs), Low Cost (simple layouts), Form (structured documents), Table (dense tabular data) and High Quality (complex layouts). The LLMWhisperer documentation compares them.

A mode the spec names for a step wins over the instance's setting.

What a step can do​

ActionWhat it does
extract_textReturns the document's text, and optionally where each line sits on the page.

Extract the text of the scanned claim form with @llm_whisperer in high quality mode, then find the policy number and the date of loss.

Confidence scores​

LLMWhisperer can also report how sure it was about the words it read. Ask for it in the spec and a step can branch on it, so a blurred or handwritten document goes to a person while a clean one keeps going.

Extract the claim form with @llm_whisperer, reporting word confidence. If the lowest confidence is below 0.7, send the form for review; otherwise continue.

Three things are worth knowing before you write a rule on it.

Only the uncertain words are reported. LLMWhisperer lists the words it is unsure about and says nothing about the rest, so a cleanly typed page reports no words at all. That is the normal result for a good scan, not a missing score. A rule that treats "nothing reported" as a problem sends every clean document to review.

Ask for confidence on the extraction step that needs it. A rule can only compare scores the extraction actually returned. If a step doesn't ask for confidence, every document it reads looks equally clean, and a review rule written on top of it never fires.

Set Word Confidence to 0 on a step you gate on. The Word Confidence setting above is a floor on the text itself, not on the report: at its default of 0.3, a word the OCR scored below that is left out of the extracted text altogether, so it cannot show up as a low score either. Left at the default, the blurred and handwritten words a review rule exists to catch are the very ones missing from it, the words that remain all look acceptable, and the document passes. Lower it to 0 on any step whose confidence you intend to act on.

A sensible rule reads "review when the lowest confidence is below x". Start around 0.7 and adjust once you have seen how your own documents score: raise it to catch more, lower it to send fewer for review.