Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Analyze and Improve Search Quality

Start with questions your readers actually ask and the source records that should answer them. Keep the query text and expected record IDs so you can compare configuration changes.

Build a Small Evaluation Set

Include direct questions, paraphrases, exact names or identifiers, ambiguous questions, and questions whose answers are absent from the source data.

For example, suppose your indexed equipment articles include Pump has low flow, which recommends checking the inlet strainer, and Pump will not start, which recommends checking the power supply and resetting the overload protection. Neither article states a warranty period. Record their actual source IDs alongside the titles, then evaluate these queries:

Query
Expected Source
Evidence to Look For
Actual Result

The pump is running but barely moving water.

Pump has low flow

Inlet strainer inspection

To be measured

The pump makes no sound when started.

Pump will not start

Power supply and overload protection

To be measured

What is the pump warranty period?

No article in this example answers this

The answer should acknowledge missing evidence

To be measured

Diagnose the Result

Observation
Check First
Possible Change

The expected record never appears

Source eligibility, readiness, and processing failures

Fix membership or indexing before tuning ranking.

The record exists, but its useful text is absent from evidence

Template and source fields

Add relevant text or readable reference data.

Evidence ends before the answer

Chunk boundaries and header size

Adjust template structure, chunk size, or overlap.

Exact names are difficult to find

Whether names appear in rendered text and which mode is used

Include the names and compare hybrid retrieval.

Relevant results are excluded

Projection values and static filters

Correct the field, type, or preset filter.

Relevant evidence is retrieved but ranked poorly

Candidate count and reranking

Compare Top K values and reranking using the same queries.

Many results repeat one record

Document grouping

Enable one result per document if the task needs distinct records.

The consuming AI client gives an unsupported answer despite useful evidence

Actual search result and answer instructions

Ask for source-linked claims and acknowledgment of missing evidence.

Change one factor at a time. Record the configuration, generation, actual source IDs, and useful passages. Include latency if response time matters to the workflow.

A reranker can reorder candidates; it cannot add a source that retrieval missed. An embedding change cannot supply information missing from source records or the template.

Last updated

Was this helpful?