@vaicli/vai-workflow-query-quality-scorer
v1.0.0
Published
Evaluate retrieval quality for a query by measuring semantic similarity between the query and its top results. Provides a quality score and recommendations without requiring labeled ground truth.
Downloads
34
Maintainers
Readme
vai-workflow-query-quality-scorer
Evaluating RAG retrieval quality traditionally requires labeled datasets. Most teams don't have these labels. They need a way to assess retrieval quality using only their queries and collection.
Install
vai workflow install vai-workflow-query-quality-scorerHow It Works
- Search — Run the test query through the full retrieval pipeline
- Score relevance — Use
similarityto measure how close each result is to the query - Analyze distribution — Use
transformto compute summary statistics - Report — An LLM interprets the scores and provides a quality assessment
Execution Plan
Layer 1: retrieve
Layer 2: score_relevance | format_results
Layer 3: quality_reportExample Usage
vai workflow run vai-workflow-query-quality-scorer \
--input query="How to configure OAuth2 with refresh tokens" \
--input collection="api_docs"What This Teaches
- Self-referential evaluation: the query itself serves as the relevance benchmark
similarityandtransformrun in parallel because both depend only on Layer 1 output- The
transformtool reshapes data for cleaner LLM consumption - This workflow produces an actionable grade that can be automated as part of a CI/CD quality check
License
MIT © 2026 Michael Lynn
