Add JSONL traces for agentic search streams - #1798
Open
RitwijParmar wants to merge 1 commit into
Open
Conversation
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.
Summary
Adds optional JSONL trace capture to
scripts/agentic_search_stream.py:--jsonl <path>flagWhy
Airweave's agentic search stream viewer is useful for interactive debugging, but once an agentic retrieval run scrolls by there is no replayable artifact for evals, regression analysis, or retrieval-quality review.
The JSONL output makes the same streamed planning/searching/evaluation/done events easy to archive and compare across prompts, filters, embedding configs, or retrieval strategy changes. That gives teams a lightweight path toward retrieval eval harnesses without changing the API surface.
Example:
python scripts/agentic_search_stream.py my-collection "find deployment docs" \ --mode agentic \ --jsonl traces/deployment-docs.jsonlVerification
python3 -m py_compile scripts/agentic_search_stream.pypython3 scripts/agentic_search_stream.py --helpgit diff --checkAI disclosure
I used an AI coding assistant to help draft and verify this contribution. I reviewed the patch before opening the PR.
Summary by cubic
Adds optional JSONL trace output to
scripts/agentic_search_stream.pyso agentic search streams are replayable for evals and regression checks. Default behavior is unchanged; traces are written only when--jsonlis provided.--jsonl <path>to write stream events to a JSONL file.sequenceandelapsed_ms, plus a final summary withelapsed_s.Written for commit 4dae56c. Summary will update on new commits. Review in cubic