Operations and security
How is declining response quality detected and corrected?
A successful model call alone does not establish a useful knowledge assistant. Operations needs technical metrics, regular domain review samples and traceable responses to changes in the collection.
Starting point Retrieval variants and quality targets are defined; technical and domain deviations need separate operational responses.
Assumptions for the example case
Example design: one operator's internal knowledge, a bounded document collection and existing authentication. Numbers and targets are assumptions. The assistant reads knowledge; tool actions and open-web research are outside scope.
Resolve declining source fidelity and verify recovery
Response quality as a common operational sequence
- IdentificationSource fidelity declinesKnowledge owners: review sample reveals an unsupported claim
- CheckLocalize the pathOperations: isolate import, permissions, search, model and output
- ReactingLock version or adjust pathKnowledge management and operations act together
- CompleteRe-examine test questionKnowledge owners: verify the claim against a permitted passage
- 1triggers analysis
- 2Determines the role
- 3Provides proof
SecurityPrompt injection in the document must not override rules and rights.
RecoveryRebuild the search index from approved versions and run the test set.
Operational plan: technical availability and domain answer quality have separate signals.
Signal and next action
| Observation | Significance | Reaction |
|---|---|---|
| Import age increases | New versions do not arrive in the search inventory. | Isolate faulty documents, inspect workers and clearly identify the previous approved version still in use. |
| HitRate@10 is declining | Search or preparation misses typical questions. | Evaluate test questions by category; compare chunking and ranking in a targeted manner. |
| Unproven statements in samples | References exist but do not support the claim. | Examine affected pipeline version; check change on the test set, roll back if necessary. |
| Model latency or quota errors increase | Answers queue up or fail. | Limit parallelism, check time limits and show technical feedback. |
| Rights verification not available | Permissible context cannot be reliably determined. | Withhold protected output and report the incident. |
Import age increases
- Significance
- New versions do not arrive in the search inventory.
- Reaction
- Isolate faulty documents, inspect workers and clearly identify the previous approved version still in use.
HitRate@10 is declining
- Significance
- Search or preparation misses typical questions.
- Reaction
- Evaluate test questions by category; compare chunking and ranking in a targeted manner.
Unproven statements in samples
- Significance
- References exist but do not support the claim.
- Reaction
- Examine affected pipeline version; check change on the test set, roll back if necessary.
Model latency or quota errors increase
- Significance
- Answers queue up or fail.
- Reaction
- Limit parallelism, check time limits and show technical feedback.
Rights verification not available
- Significance
- Permissible context cannot be reliably determined.
- Reaction
- Withhold protected output and report the incident.
Security at the actual boundaries
- Document content as untrusted data (untrusted input)
- A passage can contain instructions that distract the model from the job. Content is treated as evidence, clearly separated from the system order and tested with attack cases. A prompt rule alone does not guarantee protection; a deviating model response is a negative case for source verification.
- Limited capabilities
- The initial assistant has no tools for external actions. Application code enforces permissions; model output cannot grant additional access.
- Protected processing
- Only approved content is sent to model providers suitable under the technical and contractual requirements. Logs use technical IDs and timings; questions, passages and answers are not routinely logged.
- Restoration and modifications
- Back up originals and metadata; test index rebuilds from a defined version. Model, chunking and prompt changes run through the same test set and receive a pipeline version that can be rolled back. Success: all expected position anchors resolve; a missing anchor blocks approval.
Try it yourself
Design detection, investigation, response and revalidation. Add prompt injection and index recovery.
A hint for your attempt
HTTP success is not proof of quality. Knowledge management and operations share responsibility for inventory, evidence and safe processing.
Compare with a possible solution
- Recognition and isolation
- Operations measures import age, HitRate@10, answer p95 and technical error rate. Rising import age triggers isolation of the faulty pipeline version; unverifiable permissions cause output to be withheld. Test: Model timeout must not count as `insufficient_evidence`; return to technical operational diagnosis.
- Check for prompt injection
- Knowledge owners add a test passage containing embedded action instructions. The assistant has no tools, and the model must not treat the passage as system instructions: expect 0 unauthorised actions and an answer still grounded in sources. Deviating output is withheld; return to context and source validation.
- Restore the index and verify domain quality
- After rebuilding the index from DV-17, check all expected position anchors in the test set. Success: 100% of references resolve, HitRate@10 and the domain review sample meet agreed targets; a missing anchor blocks the pipeline version. Return to the data and version model in step 5.
Apply to your project
Which quality deviation triggers which role and next action for you?