AI guides

Can RAG without embeddings be more efficient? Zilliz compares PageIndex and Milvus

By 尹珉0 viewsSource: Zilliz
Can RAG without embeddings be more efficient? Zilliz compares PageIndex and Milvus

A Zilliz author compares retrieval within known target papers on a QASPER subset. Across 80 answerable questions, Dense covers complete evidence for 98.75%, versus PageIndex's 81.25%, but answer lexical F1 differs by only 0.40 points. Context use, latency and cost also vary.

Over the past few years, the mainstream approach to RAG has been to split documents into text chunks, generate vectors with an embedding model and store them in a vector database. When a user asks a question, the system retrieves relevant content through vector similarity and passes it to a large language model to generate an answer.

The open-source project PageIndex, however, identifies two problems with traditional vector retrieval: semantically similar text does not necessarily contain the information needed to answer a question, and fixed-length chunking can disrupt the original context.

Could a better solution be to retrieve directly from the original document's structure—building a tree index resembling a table of contents, then letting a language model choose sections, read the original text and find evidence according to the question? The process requires neither embeddings nor a vector database.

But autonomous model search also consumes compute. If we remove vector retrieval and let a language model find the evidence directly, what happens to the overall system's accuracy, speed and cost?

Using 100 paper-question-answering questions from QASPER, we compared three approaches: PageIndex, several Milvus-based retrieval configurations, and reading the entire document directly. We found:

  • Vector retrieval found more evidence. Dense achieved 98.75% complete-evidence coverage, compared with PageIndex's 81.25%. Dense remained ahead after the evidence budget was reduced.
  • More evidence did not necessarily yield a substantial improvement in answers. Dense covered complete evidence for 17.5 percentage points more questions than PageIndex, yet its answer F1 was only 0.40 percentage points higher.
  • PageIndex read less original text but incurred higher overall inference overhead. Including model calls during search, PageIndex's cumulative input tokens were 3.17 times Dense's, and both offline index construction and online queries took longer.

01

How does PageIndex retrieve documents without embeddings?

Suppose we are reading a machine-learning paper and want to know which datasets the authors used and how they split them.

Traditional vector retrieval uses embeddings of text chunks for semantic matching. It can retrieve semantically relevant material, but a paper may discuss datasets in its introduction, related work and experimental sections, while only the experimental section contains direct evidence.

PageIndex imitates a human's approach of first using the contents to locate a section, then reading it closely. It builds a hierarchical index tree containing section titles, summaries and locations in the original text. The model first uses directory nodes to select sections likely to contain the answer—such as the datasets subsection under experiments—and then reads their contents, narrowing the search space.

Accordingly, PageIndex's search performance depends on two factors: whether the document tree provides enough clues and whether the model can use those clues to find the correct pages. When a question concerns fine-grained parameters, data proportions or other details, section titles and summaries often omit that information. The model may therefore choose the wrong pages or stop searching prematurely, missing key information.

02 Experimental design: evaluating evidence retrieval and answer generation separately

When a RAG system answers incorrectly, there are usually two possible reasons: retrieval missed key information, or the answering model failed to use information that was found. This experiment therefore separately evaluates evidence coverage, final answer performance and runtime overhead.

2.1 Test data

The experiment uses QASPER v0.3, a dataset for question answering over academic papers containing questions, reference answers and supporting evidence paragraphs from the original text.

The formal test set contains 51 English-language papers and 100 questions: 40 requiring a single evidence paragraph, 40 requiring multiple paragraphs, and 20 unanswerable questions. Another 12 papers and 20 questions are used for development and debugging.

Article illustration

The 63 papers contain 3,419 paragraphs in total. After reconstruction as text PDFs, they passed a read-back consistency check. Documents are 2–20 pages long, with a median of six pages.

Each question's target paper is specified in advance. Retrieval systems cannot access the reference answers or annotated evidence. This experiment examines only within-document retrieval, not retrieval across documents.

2.2 Compared configurations

Article illustration

Milvus 3.0.1: text is divided into non-overlapping chunks of 512 units and converted into 768-dimensional vectors, with truncation disabled during embedding. Dense uses exact FLAT search to exclude recall losses caused by approximate vector search.

Article illustration

Hybrid retrieval retrieves up to 50 candidates per route and merges them with RRF—reciprocal rank fusion, which computes a combined score from each candidate's rank across the routes. LLM reranking uses a 4B model to process the top 30 candidates, with a maximum input of 12,000 units.

The core call below restricts retrieval to the target paper and performs RRF fusion in one request:

# Milvus 3.0.1: Dense + BM25 + RRF 混合检索

expr = f'doc_id == "{doc_id}"'

dense_req = AnnSearchRequest(

data=[query_vec], anns_field="dense_vec",

param={"metric_type": "COSINE"}, limit=50, expr=expr

)

bm25_req = AnnSearchRequest(

data=[query_text], anns_field="sparse_bm25",

param={"metric_type": "BM25"}, limit=50, expr=expr

)

res = collection.hybrid_search(

reqs=[dense_req, bm25_req], rerank=RRFRanker(k=60),

limit=50, output_fields=["chunk_id", "para_id", "section_title", "text"]

)

PageIndex 0.2.10: a section tree and node summaries are generated in advance, with each summary limited to 60 words. At query time, an agent independently calls tools for reading the contents and pages, with at most 10 search rounds and 240 seconds per question. The following illustrates the toolchain. Page numbers are chosen by the agent; it does not always read the same two pages for every question:

# PageIndex 0.2.10: 目录树推理 + 按页读取原文

# Agent 内部循环调用以下两个原生工具(最多 10 轮 / 240 秒):

tree = agent_tools.get_document_structure(doc_id=doc_id)

pages_text = agent_tools.get_page_content(doc_id=doc_id, pages=[2, 3])

# 读到的原文页装入同样的 6000 cl100k 预算,交同一作答模型处理

evidence_pack = pack_evidence(pages_text, max_units=6000)

answer_json = unified_llm_answer(question, evidence_pack, max_tokens=256)

All configurations arrange the retrieved original text into evidence packs and use the same prompt and the same 4B-parameter language model to answer. Pack length is measured using the cl100k_base tokenizer and capped at 6,000 units, including evidence identifiers and separators.

Direct full-text reading serves as an additional control. It is tested only on the 60 questions whose complete source texts fit within the budget, including 50 answerable questions, to see whether the model answers correctly when given the entire paper.

03

Results: more complete evidence does not necessarily improve answers in parallel

We use two metrics to assess retrieval for the 80 answerable questions:

  • Complete-evidence coverage: the proportion of questions whose evidence packs contain at least one complete set of human-annotated evidence. Missing any required paragraph counts as a coverage failure.
  • Paragraph recall: the proportion of human-annotated evidence paragraphs retrieved in full.

The final results are as follows. Among the 80 answerable questions, Dense retrieved all reference evidence for 79, giving complete coverage of 98.75%. PageIndex did so for 65, or 81.25%. Complete coverage here means the evidence pack contains at least one full annotated evidence set; incomplete paragraphs do not count as hits.

Article illustration

On single-paragraph questions, all four Milvus routes reached 100%, while PageIndex reached 82.50%. When multiple paragraphs had to be combined, Dense still achieved 97.50%, versus PageIndex's 80.00%. For comparison, BM25 also achieved 92.50% overall coverage.

Using the 46 papers containing answerable questions as clusters, 2,000 paired bootstrap iterations give a PageIndex-minus-RRF coverage difference of −16.25 percentage points, with a 95% confidence interval of [−24.69, −8.22].

At the answering stage, however, the gap is much smaller. Dense covers reference evidence for 17.5 percentage points more questions than PageIndex, yet its answer lexical F1 is only 0.40 percentage points higher: 32.12% versus 31.72%. F1 here measures overlap between answer texts, not semantic correctness.

Article illustration

Separating out the 50 answerable questions that fit full-text reading permits comparison on the same subset. The table below also lists paragraph metrics across all 80 answerable questions and counts questions for which the model still refused to answer despite having complete evidence:

Article illustration

Direct full-text reading completely covers the reference evidence for these 50 questions, yet its F1 is only 32.33%. Across all answerable questions, Dense refuses 20 despite having complete evidence, while each hybrid route refuses 26. Continuing to improve recall alone cannot solve these failures.

For example, a question about paper 1809.00530 asks what the source and target domains are. The evidence is on page 4, but PageIndex reads only pages 2 and 3 before refusing. Dense retrieves all of p0030 and p0031, yet the answering model outputs only “source domain,” omitting the four target domains: Book, Electronics, Beauty and Music. The first failure is in evidence retrieval; the second is in answering.

Another representative question, from paper 1707.06806, asks which shallow methods were used in the experiments. Both routes include reference evidence p0024 on page 3. The Dense route still refuses to answer, while PageIndex, after reading pages 3 and 4, answers “Support Vector Machine with linear kernel.”

In other words, Dense can deliver more reference evidence at retrieval time, but more complete retrieval does not necessarily translate directly into more accurate answers.

04

Checking the results: is vector retrieval simply reading more?

Next, consider context length. Overall, Dense has better recall, but also gives the answering model more original text. Its median evidence-pack length is approximately twice PageIndex's. It includes the entire paper for 51 questions, compared with only 10 for PageIndex.

Article illustration

For paragraph precision—the proportion of returned paragraphs that are human-annotated evidence—PageIndex achieves 9.23%, exceeding Dense's 5.73%, BM25's 7.99% and the two hybrid routes' 5.68%. Unannotated paragraphs may also provide useful context, but by the proportion of reference evidence, PageIndex delivers more concentrated material.

To examine Dense under shorter contexts, we truncate each configuration's already-generated evidence packs, preserving their original order, to 1,500 and 3,000 units and recalculate complete-evidence coverage.

Article illustration

At 1,500 units, Dense still achieves 76.25% and PageIndex 43.75%; at 3,000 units, they achieve 91.25% and 77.50%, respectively. These post-hoc truncation results show that, under the current evidence ordering, Dense's earlier content still contains more reference evidence. They cannot independently rule out effects from reading volume, chunking or ranking strategies.

05

Experimental cost: PageIndex removes vectors but adds model calls

PageIndex's final evidence packs for the answering model are shorter. But including the preceding multiple rounds of search reasoning, its cumulative input tokens across 100 questions are 3.17 times Dense's.

Article illustration

The difference begins during offline preparation. Embedding 63 papers and writing them into Milvus takes approximately 11.3 minutes. PageIndex takes approximately 94.4 minutes to build trees and generate summaries, making 545 model calls. Forgoing a vector index does not mean avoiding index preparation.

For online queries, PageIndex search reasoning has a p50 of 28.35 seconds, compared with 0.09 seconds for Dense retrieval. PageIndex requires the model to repeatedly inspect the contents, select pages and read original text. Although it ultimately delivers less evidence, its cumulative input is approximately 1.49 million tokens, versus approximately 470,000 for Dense.

Article illustration

Adding reranking with the same model to hybrid retrieval incurs further overhead. Retrieval-and-reasoning p50 rises from 0.09 to 18.51 seconds, while input tokens rise from approximately 474,000 to 810,000. Complete-evidence coverage remains 97.50%. Answer F1 rises from 25.61% to 29.75%, still below Dense's 32.12%. Under this configuration, adding a reranking step is not necessarily more cost-effective.

06

Closing thoughts

As for whether PageIndex can replace vector databases, my personal experience suggests considering vector or hybrid retrieval first to locate relevant documents when building a RAG or agent knowledge base, then letting an agent use document trees to search more deeply. For short documents that fit directly into context, it is also worth evaluating whether full-text reading is already sufficient.

Article illustration

About the author

Zilliz Gold Writer: Min Yin

This article comes from Zilliz. Author: Min Yin.

Related topics

After reading

Join the AINRK community

Read how to join the community and connect with people working in AI.

Community information (opens in a new tab)