Diagnostic step 1
Run an A/B retrieval test: compare exact cosine similarity (brute-force) vs ANN results for a representative query set to quantify recall loss; do this on a copy of the DB (non-production) to avoid impacting latency.
Generated Oct 12, 2026, 10:57:58 PM
Run an A/B retrieval test: compare exact cosine similarity (brute-force) vs ANN results for a representative query set to quantify recall loss; do this on a copy of the DB (non-production) to avoid impacting latency.
Temporarily increase nprobe or re-create the ANN index with a larger nlist on a staging index to measure relevance improvements; monitor query latency and resource use before promoting to production.
Validate embedding pipeline: compute per-dimension and norm statistics for a sample of query and document embeddings to detect model drift or missing normalization (e.g., ensure consistent use of L2 normalization if expected).
Audit chunking metadata for a random sample; fix the pipeline to populate source/document IDs and timestamps consistently. Avoid filtering by metadata in the first retrieval pass — apply metadata filters before or combine filtering with re-ranking to prevent dropping good candidates.
Improve prompting to include explicit re-ranking step: send top-N candidates to the LLM with citation instructions and have a deterministic re-ranker (e.g., lexical overlap + embedding score) as a guardrail. Roll changes to a canary portion of traffic and monitor relevance metrics; escalate to ML engineers if embedding model retraining or index redesign is required.