← How it works

How Brain finds the right passage in a three-hundred-page file

29 August 2026 · Anserli · 3 min read · retrieval · search · how it works

Rows of law reports on a dark wooden shelf

When you ask Brain a question, something has to decide which of the file's thousands of sentences to put in front of the model. That decision is retrieval, and it is the part of the product that determines whether the citation you click opens the right page. Here is how it works, in enough detail to know where it can fail.

Documents become passages

When a document is uploaded, its text is extracted and split into passages — a few hundred words each, with overlap so that a sentence at a boundary is not lost. Each passage remembers its document and its page.

Each passage is then turned into an embedding: a long list of numbers that represents its meaning, produced by a model trained so that passages about the same thing land near each other. "The cheque was returned unpaid for insufficient funds" and "the instrument was dishonoured" are far apart as strings and close together as embeddings. This is what lets Brain find a passage that answers your question without sharing any words with it.

The embeddings are stored in an index. Each matter has its own index. Not a shared index with a filter on it; a separate one. We explain why that distinction matters.

A question finds its passages

Your question is embedded the same way, and the index returns the passages nearest to it — around a dozen, ranked. Those passages, with their document names and page numbers, are what the model reads. It is instructed to answer from them alone and to cite them by name.

This is why a specific question does better than a vague one. "When was the cheque returned?" embeds close to the memo's return line. "Tell me about the case" embeds close to nothing in particular, and retrieval returns a grab-bag.

Rows of law reports on a dark wooden shelf
Rows of law reports on a dark wooden shelf

Transcripts join the same index

A saved hearing transcript is split into segments the same way — by time range rather than page — and embedded into the matter's index alongside the documents. From then on, "what did the witness say about the deposit?" can retrieve a passage from the deposition and a segment from the hearing, and the answer cites both: one by page, one by time.

Where it can miss

Retrieval is good. It is not complete, and knowing its failure modes is more useful than pretending it has none.

The passage exists but is not similar to the question. A witness statement that contradicts the client's timeline, but never mentions the thing you asked about, will not be retrieved by a question about that thing. This is the structural gap, and it is why Deep mode reads every document instead.

The fact is split across a boundary. A date on one line and its context on the next, with a passage break between them. Overlap reduces this; it does not eliminate it.

The document is scanned. There is no text to embed. It is invisible to retrieval, and it shows as pending in the Vault so you know.

Brain declares something absent that is present. The most damaging miss: retrieval does not surface a passage, and Brain says the fact is "not in the excerpts read". True, and misleading. The prompt now forces that exact wording rather than "not in the file", and we are building a targeted second search that fires whenever Brain wants to declare something absent — because absence is a claim that deserves its own check.

What we measured

We chose the embedding model by bake-off, on real legal passages, against the question "does the right passage come back in the top five?" The winner did so 87.5 per cent of the time on our checkpoint set — the best of the models we could run, and not 100. We publish the number because a retrieval system described without one is being described by someone who has not measured it.

What this means for you

Name documents well, ask specific questions, and use Deep when the question is "what am I missing?" — because that is the one question retrieval, by its nature, cannot answer.

See it on a file you know.

The pilot is invite-only and runs in India. Every new account comes with a worked sample matter, so the first thing you do is check whether Brain is right.

Request an inviteSee it in the room