How to Check Retrieved Documents for Injected Instructions Before the Model Follows Them
Treat retrieved text as data, look for instructions hidden inside it, and ground the answer in the context instead of obeying the…
THE FIELD GUIDE
Understand model formats, context windows, quantization, embeddings, and sampling before choosing settings for a real task.
Treat retrieved text as data, look for instructions hidden inside it, and ground the answer in the context instead of obeying the…
Compare each document update time with its indexed time, re-embed what changed, delete what was removed, and verify with a probe question.
Attach the source chunk ID to every claim in the answer, check each claim against its chunk, and drop claims with no…
Pull the date, document type or tenant out of the question, apply it as a metadata filter, and check the results stay…
Generate several phrasings of the same question, run each one, and merge the results so a good chunk missed by one phrasing…
Turn the user question into the wording the documents use, search with the rewritten query, and check the right chunks rank higher.
Retrieve a wide first set, score each candidate against the query with a reranker, and pass only the top few to the…
Run a keyword search and a vector search for the same query, fuse the ranked lists, and check exact terms stop being…
Split on document structure when headings carry meaning, keep fixed-size chunking as the starting point, and measure both on your own questions.
Set an overlap between neighbouring chunks, test whether answers that straddle a boundary are still retrieved, and adjust the overlap until they…