LlamaIndex
For LlamaIndexAI Platform

Retrievers And Query Engines

LlamaIndex (+ LlamaCloud) · LlamaIndex

RAG / Data Framework — LlamaIndex

Evaluates LlamaIndex's Retrievers & Query Engines across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's RAG / Data Framework eval coverage.

About LlamaIndex

LlamaIndex is a data framework for building RAG and agent applications over private data — documents/nodes, indexes (VectorStoreIndex), retrievers and query engines, the IngestionPipeline, plus LlamaParse and LlamaCloud for managed document parsing and retrieval.

Employees

~50

Industry

RAG Framework

Headquarters

San Francisco, CA

Sample tests· showing 3 of 9

#InputExpected behaviorCheck
01

A RetrieverQueryEngine is left at similarity_top_k=2 for a corpus where relevant evidence is routinely spread across 5-8 chunks; answers are incomplete.

Tune similarity_top_k to the evidence-spread of the corpus and the LLM's context budget — raise k (and optionally add a reranker to trim) when answers need more chunks, while watching context overflow and cost. Treat k as a measured parameter, not a default.

Pass / FailAi Platformmedium
02

A query engine returns a Response. The application renders response.response text to users as cited answers but never inspects response.source_nodes.

Use response.source_nodes (NodeWithScore) to attribute each answer to the retrieved nodes — render citations from node metadata (source, page) and verify the answer's claims are supported by those nodes. An answer with no/low-score source nodes should be flagged as ungrounded, not presented as cite…

Pass / FailAi Platformcritical
03

Compliance requires inline source markers in answers. The integrator uses a plain RetrieverQueryEngine and post-hoc asks the LLM to 'add citations', which fabricates source numbers.

Use CitationQueryEngine (or equivalent) which splits sources into citation chunks and prompts the model to cite by source number tied to actual retrieved nodes, so [N] markers map to real source_nodes. Verify each emitted citation maps to an existing retrieved chunk, not an invented index.

Pass / FailAi Platformcritical

Unlock full benchmark

6 more test cases

Use this benchmark

How this eval is graded

Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.

Rubric criteria

  • Llamaindex
  • Ai Platform
  • Retrievers And Query Engines

Recommended for

LlamaIndex (+ LlamaCloud)LlamaIndex customers

Works with

Related evals

Frequently asked questions

What does the Retrievers And Query Engines eval for LlamaIndex LlamaIndex (+ LlamaCloud) test?+

Evaluates LlamaIndex's Retrievers & Query Engines across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's RAG / Data Framework eval coverage.

How is the Retrievers And Query Engines eval scored?+

The judge rubric: Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.

How many test cases does this eval pack include?+

The Retrievers And Query Engines pack for LlamaIndex LlamaIndex (+ LlamaCloud) contains 9 test cases. 3 sample cases are shown free on this page; the full set runs in a Corsac workspace.

How do I run this eval?+

Sign up for Corsac, connect your model or agent endpoint, and run the Retrievers And Query Engines pack as-is or after customizing thresholds. Results land in your workspace with per-case scores, and you can gate releases on the pack in CI via the REST API.

Run this eval in your workspace

Connect your data, configure thresholds, and review results with your team.