← Articles

One question, two searches

NeedleSearch searches by words and by meaning, then ranks the combined results against the question.

Search across documents

How search works

One question, two routes at once. The results are merged and re-sorted.

The agent asks searchcan a person have their personal data deleted?
both routes run at the same time

By meaning1

Finds the article on the right to erasure, though the question never says “erasure”.

By words2

Finds passages with the words themselves: “personal data”. Catches case numbers and article references.

Merge3

The two lists become one. Passages found by both routes rise.

Re-sort4

A separate model reads each passage with the question and puts the best first.

To the agent5

The best passages go to the agent with document and page.

Context. When a passage matters, the agent reads the paragraphs around it, so a phrase is not taken out of context.
Your scope only. Search runs inside what the person asking can access. Other people’s files appear at no step.

Words and meaning

Search by meaning can match “delete personal data” to a passage about “erasure”. Similar-looking identifiers such as C-131/12 and C-131/13 need an exact match.

Search by words finds identifiers, names and defined terms. A clause titled “unilateral withdrawal” may only surface in the semantic results for “ending the lease early”.

Concepts are searched as full sentences and identifiers get their own query. On our test set, exact lookups rose from 48.6% to 99.8% (see the benchmark).

Ranking the combined results

A passage found both ways gets a boost. A separate model then scores each candidate against the question.

The agent receives the top passages with document and page references. A citation opens the source page.

Context and scope

When a passage matters, the agent can read its neighbours to check for exceptions or see whose argument it quotes.

Both searches are limited to documents the person asking can open.

Questions and answers

Does NeedleSearch search by meaning or by exact words?

Both at the same time. The two result lists are merged, passages found by both routes rise, and a separate model scores each candidate against the question before the best go to the agent.

Why is search by exact words needed?

Similar-looking identifiers such as C-131/12 and C-131/13 need an exact match, and search by words finds names and defined terms. Giving identifiers their own query raised exact lookups from 48.6% to 99.8% on our test set.

Can search return documents I cannot open?

No. Both searches run inside what the person asking can access, and other people's files appear at no step.