@vaicli/vai-workflow-hybrid-precision-search
v1.0.0
Published
Run three retrieval strategies in parallel (broad, precise, filtered), merge results, and rerank for optimal relevance.
Maintainers
Readme
vai-workflow-hybrid-precision-search
A single vector search strategy returns biased results. Broad models prioritize recall, while precise models prioritize precision. Metadata filters find structurally matching documents that may miss semantic intent. No single approach is optimal for all queries.
Install
vai workflow install vai-workflow-hybrid-precision-searchHow It Works
The workflow runs three retrieval strategies in parallel against the same collection:
- Broad retrieval —
searchwithvoyage-4-litefor high recall at low cost - Precise retrieval —
querywithvoyage-4-largefor high precision with reranking - Filtered retrieval —
searchwith a metadata filter for structural matching
Results from all three strategies are merged with deduplication, then reranked against the original query to produce a final, optimized result set.
Execution Plan
Layer 1 (parallel): broad_search | precise_search | filtered_search
Layer 2: merged
Layer 3: final_rerankExample Usage
vai workflow run vai-workflow-hybrid-precision-search \
--input query="How does rate limiting work in distributed systems?" \
--input collection="engineering_docs" \
--input filter='{"category":"architecture"}' \
--input limit=5What This Teaches
- Three steps with no dependencies on each other run in parallel automatically (Layer 1)
- The
mergetool withdedup: trueeliminates duplicate documents found by multiple strategies - The shared embedding space allows mixing
voyage-4-lite,voyage-4, andvoyage-4-largeresults - Final reranking produces a unified relevance ordering regardless of which strategy originally found each document
License
MIT © 2026 Michael Lynn
