Analyze and Improve Search Quality
Analyze and Improve Search Quality
Start with questions your readers 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 | No returned text supports a warranty period. | To be measured |
The Query tab returns search evidence. Questions with no supporting source can still return matches, so check the returned text rather than expecting no results. If your application generates answers from search results, evaluate how it handles missing evidence separately.
Compare Runs in the Console
Use the profile’s Query tab to run each evaluation query the same way every time:
-
Select the same Index for each run, and leave Top K override empty unless you are testing Top K.
-
Run the query and record the Generation, the rank and record ID of each result, and whether the expected source appears.
-
Read the returned text for the expected record, labeled Matched chunk or Indexed document text. Check whether it contains the needed evidence. For chunk results, also check whether the evidence is cut off by a chunk boundary.
-
Compare Semantic and Keyword ranks to see which retrieval mode found the record. A record with a strong keyword rank but a weak semantic rank often contains the exact words but little context, and vice versa.
-
Use Preview raw JSON and Copy JSON to save the full result for later comparison.
-
To compare settings, change one thing (for example, select No index, try a different Top K override, or save a change to the index), then rerun the same queries.
Note: Saved named-index settings apply to the next query without reindexing.
When evaluating source-query, template, chunking, or embedding changes, Keep embeddings does not reprocess existing indexed content, and Re-embed everything can reuse a generation. If your comparison requires a fresh build, save the configuration and select More actions → Rebuild index. Wait for Ready and confirm the new Generation before comparing results.
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.