test(retrieval): add lexical controls and ripgrep comparator - #20
Merged
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.
What this tests
any,all, and prefix policies on one labeled 2,016-document corpusResults
all: the same exact-literal quality and 0.75 recall on reordered/separated terms where ripgrep scored 0all1.508 ms; Vyral prefix 1.738 msDecision and contract boundary
The evidence admits one experimental use case: bounded exact-literal lookup over an authorized, rapidly changing local code or Markdown tree when copying that tree into an index is not justified. Indexed Vyral remains the appropriate path for reordered terms, prefixes, filters, tenant boundaries, snapshots, and lower post-index latency.
The integration remains outside the stable OpenAPI, schema, SDK-catalog, REST, and MCP surfaces. It does not expose filesystem search automatically.
Evidence
benchmarks/retrieval/ripgrep-vs-vyral-local-2026-08-11.jsonscripts/benchmark-ripgrep-retrieval.pyscripts/verify-ripgrep-retrieval-report.pyscripts/verify-lexical-http-quickstarts.shscripts/verify-python-runtime.sh(227 tests, 79.0% branch coverage, strict mypy, wheel/sdist clean-install checks)scripts/verify-public-export.shpython3 scripts/verify-markdown-links.py --all .