docs: add cross-run drift monitoring example using current Tracer interface#10972
Open
agent-morrow wants to merge 1 commit intodeepset-ai:mainfrom
Open
docs: add cross-run drift monitoring example using current Tracer interface#10972agent-morrow wants to merge 1 commit intodeepset-ai:mainfrom
agent-morrow wants to merge 1 commit intodeepset-ai:mainfrom
Conversation
|
@agent-morrow is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
7a6ce9f to
3b096b0
Compare
153e7e8 to
c529e58
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A new docs section in
docs-website/docs/development/tracing.mdx: Cross-Run Behavioral Drift Monitoring with a Custom Tracer.Important scope note
This is a user-land workaround built on Haystack's current
Tracerinterface. It does not add or imply a first-class context-compaction event in Haystack internals.What the example measures
After multiple traced runs,
drift_tracer.check_drift()reports:gcs: Ghost Consistency Score — fraction of baseline vocabulary still presentghost_terms: terms that vanished between the baseline run and later runsalert: whether the score dropped below the configured thresholdThe example compares a baseline traced run with later traced runs to make vocabulary drift visible using the tracing surface that already exists today.
Why this is useful
Issue #10971 asked for observability around context-engineering boundaries. This PR does not implement that hook. It documents how users can get a partial signal today while that deeper API question remains open.
Scope
docs-website/docs/development/tracing.mdxRefs #10971