RAG Without Vectors? Why PageIndex Might be the Architecture We’ve Been Missing
From the publisher’s feed, collected in the ZeroLabs newsroom.
In recent times, Large Language Models (LLMs) have become the go-to solution for answering user queries. However, the context window (the maximum amount of tokenized text a model can process at one time) has remained a fundamental architectural limit. While recent models support longer contexts, researchers have established that model performance deteriorates with growing context length.¹ This creates problems for LLMs to accurately interpret and reason over long, complex, domain-specific documents.Large Language Models (LLMs) are trained on vast volumes of textual data and use billions of parameters to store that knowledge, which is then used to generate output for downstream NLP tasks like answering questions, translating languages, and completing sentences. However, their ability to access and precisely manipulate specific knowledge is still limited, and hence on knowledge-intensive tasks, their performance as standalone models lags behind system architectures equipped with external knowledge retrieval. In short, standard LLM models will not be able to generate accurate response for very specific questions because either the model was not trained on such information or it had outdated information. You will provide additional information (in forms of documents) along with the prompt to LLM while querying — so that it can generate the response based on the accurate, context-specific and current information. That is what precisely what Retrieval Augmented Generation (RAG) does.RAG has emerged as the dominant solution for grounding Large Language Models (LLMs) in external data. While powerful, this straightforward approach of “chunking” data and converting it into high-dimensional vectors (embeddings) and then retrieving the parts having highest cosine similarity with user query, has a crucial blind spot.There’s a particular kind of frustration (something I myself have faced) familiar to anyone who’s tried to build a document Q&A system with a standard RAG pipeline. You spend hours getting the chunking right, tuning the embedding model, setting up a vector database and then you run your test queries. You become happy that the system mostly works…until you ask about something specific buried in a 150-page report. For example, if you ask an LLM about the impact of Clause 4b on page 98 of a contract, a traditional vector database will break down; the model confidently returns the wrong section, or even worse, pieces from three different sections that are semantically similar but contextually useless. Why? Because the relevant context might be arbitrarily cut between chunks, or other semantically similar “vibes” elsewhere in the 200-page document might distract the model. While mathematical cosine similarity is fast, but does not equal logical or structural relevance.That failure mode is the starting point for PageIndex. Developed by VectifyAI and released as open-source, it takes a different architectural bet: what if we stopped treating document retrieval as a similarity search problem and started treating it as a reasoning problem?²Where Vector-based RAG goes WrongTo understand why PageIndex exists, it helps to first understand what actually breaks in a typical vector pipeline. And I am not talking about the theoretical failures, but the ones that show up when real documents are used in the system.Standard RAG works like this: take a document, break it into chunks of some fixed size (say, 512 or 1000 tokens), convert each chunk into a vector using an embedding model, and store everything in a vector database like Pinecone or Chroma. When a user submits a query, you embed the query and retrieve the top-k chunks by cosine similarity. We augment the user query with these similar chunks and feed those chunks to your LLM to generate an answer. In short, we retrieve, augment and generate. This is what forms RAG.How traditional vector-based RAG system worksIt’s clean and fast. And it genuinely works well for certain kinds of documents.But here’s where it breaks down. Semantic similarity between a query and a passage is not the same thing as relevance. Because, similarity is not reasoning. A query like “what are the deferred tax liabilities for fiscal year 2023?” might not match the exact table that answers it, in the embedding space because the surrounding text in that table is full of numbers and other accounting jargons which are not natural language. Meanwhile, the model might retrieve some information further back in the document that talks about tax liabilities in general terms which sounds similar but is completely wrong for the actual question. Overall, this makes the model fetch irrelevant data or in a better case, relevant data with lot of other irrelevant information.Then there’s the chunking problem. Fixed-size chunking is fundamentally indifferent to document structure. It cuts paragraphs mid-sentence, separates tables from their captions, and splits definitions from the terms they define. The retriever has no awareness of where a chunk falls in the document’s logical hierarchy, whether it came from the executive summary or the appendix, from the main clause or a footnote.Cross-references are also a huge problem: especially legal and financial documents are usually full of them; for example, “see Table 5.3,” “refer to Appendix A.” A vector retriever can’t follow those links. It retrieves by surface similarity, and “see Appendix A” shares no meaningful embedding distance with the contents of Appendix A.Finally, another drawback of standard RAG system with vector database is that each query is treated in isolation. The retriever has no memory of what was asked three turns ago. So, if user asks about revenue, and then asks about costs, the retriever starts fresh. It doesn’t know which costs, in what context.These are the normal failure modes of production systems built on vector RAG for complex, long-form documents … which eventually led to the need of something different which prioritizes reasoning over document structure instead of performing semantic search and relying on the mathematical similarity.And there comes PageIndex into the picture…PageIndex is a vectorless RAG architecture which uses reasoning over document structure to retrieve documents than performing semantic search to find most similar vector embeddings.² Instead of treating a document as just a pile of text, it treats it as a structured hierarchy, much like a book with a well-structured table of contents.PageIndex’s Bet: Reasoning Over StructurePageIndex proposes a different starting point: instead of asking “which chunks are most similar to the query?”, ask “where in this document would the answer most likely live?” It doesn’t chunk, it parses; very similar to how human naturally reads. PageIndex effectively moves from pure mathematics as retrieval criteria to thinking and reasoning.Here’s how PageIndex actually works.Phase 1: Structural IndexingWhen a document is ingested, PageIndex doesn’t convert it into embedding vectors. Instead, it creates a JSON-based hierarchical structure to represent a Table of Contents (ToC) for unstructured documents. It parses the document to identify its organic structure (e.g., chapters, sections, subsections) and uses an LLM to generate short summaries of each section. The output is a hierarchical JSON file, an index tree where each node represents a logical section (chapter, paragraph, page), contains its summary, and links to its sub-sections. Each node in the ToC links directly to its corresponding raw content.That’s it. No vector database, just a structured, human-readable index of the document’s architecture. This mapping enables the LLM to select and retrieve specific nodes as needed, facilitating precise and context-aware information access.Here’s a simplified example of what a node looks like:{ "node_id": "0006", "title": "Financial Stability", "start_index": 21, "end_index": 22, "summary": "Overview of the Federal Reserve's approach to financial stability monitoring in 2023.", "sub_nodes": [ { "node_id": "0007", "title": "Monitoring Financial Vulnerabilities", "start_index": 22, "end_index": 28, "summary": "Details on the Fed's ongoing monitoring of systemic risk indicators." } ]}Phase 2: Reasoning-Based RetrievalWhen a query comes in, instead of performing a mathematical vector search, PageIndex initiates a Reasoning Agent (powered by an LLM), which acts just like how a human navigate through a document and extract information. It iteratively reasons and decides which section of the document to look next. First, it reads the table of contents, decides which sections are worth exploring. It selects a section and navigates down the tree to extract the relevant raw text. If this section doesn’t contain enough information to answer the query, it iterates by repeating the loop (going back to the tree and trying another section). Once enough information is collected for the query, generate a complete response.Crucially, the agent has access to conversation history. If the previous message established a specific context, that context informs where to look next.The difference from vector retrieval is that the system is deciding where to look, not just finding what looks similar. One involves judgment; the other involves math. For structured, complex documents, judgment tends to win.The reasoning process of PageIndex (Source: https://pageindex.ai/blog/pageindex-intro)What You Give UpI want to be honest about the trade-offs, because PageIndex is not a universal upgrade.The biggest cost is latency and LLM API usage. Every retrieval involves an LLM reasoning over summaries, potentially iterating multiple times. That’s slower and more expensive than a single vector search, especially at scale. For applications where a user is querying a massive collection of short documents and needs fast, approximate retrieval, a vector database is almost certainly still the right call.The model also depends heavily on the quality of the structural parsing and the section summaries generated during indexing. If the document is poorly formatted, has no clear section headers, or contains sections that the summarizer mischaracterizes, the reasoning agent is navigating a bad map.And the framework is more complex to set up than dropping data into Pinecone. It’s a different mental model, and teams used to the standard chunking pipeline will need to rethink their ingestion process.Where It Actually ShinesThat said, there’s a category of use cases where PageIndex’s approach is meaningfully better: annual reports, legal contracts, technical manuals etc. Basically, any document that’s long, internally well-structured with proper headers, cross-referenced, and requires more than surface-level lookup to answer specific questions. These are exactly the cases where vector RAG’s limitations become visible.The Bigger Pattern HereHere’s the thing I keep coming back to. RAG has been treated as a fairly fixed recipe: embed, store, retrieve by similarity. When retrieval is actually a much more open-ended problem, and we can answer both with math and with reasoning, we defaulted to math because it’s fast and cheap. That was a reasonable choice but it may not be the right choice for all document types.Claude Code already moved in this direction. VectifyAI’s own blog notes that the coding assistant shifted away from vector-based retrieval for code search, using a more agentic approach that outperforms similarity-based lookup for structured content. PageIndex extends that same bet to documents.If You Want to Try ItPageIndex is open-source, on GitHub under VectifyAI; the repository can be found here. There’s a chat interface at chat.pageindex.ai where you can drop in a PDF and start querying without writing any code. For developers there’s an API and MCP integration as well.It’s still fairly new, published just in September 2025, so the ecosystem is thin. But the underlying idea is clean, and the implementation is solid enough to build on.Final SummaryIf you are dealing with complex, structured documents and in need of deep, precise extraction with non-negotiable accuracy, and you have flexibility for higher latency and cost, then PageIndex is definitely the way to go forward with.On the other hand, sticking with vector-based RAG is a sensible choice when you are dealing with a large number of short documents and needs fast, approximate retrieval with low cost-per-query.Here is a table summarizing the strength of both worlds:https://medium.com/media/3a8cd862b17df69f3e2459182f46b66d/hrefReferences[1] Hong, K., Troynikov, A., & Huber, J. (2025, July). Context rot: How increasing input tokens impacts LLM performance (Technical Report). Chroma. https://research.trychroma.com/context-rot[2] Zhang, M., Tang, Y., and PageIndex Team, “PageIndex: Next-Generation Vectorless, Reasoning-based RAG”, PageIndex Blog, Sep 2025. https://pageindex.ai/blog/pageindex-intro[3] Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W., Rocktäschel, T., Riedel, S., & Kiela, D. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. arXiv. https://arxiv.org/abs/2005.11401RAG Without Vectors? Why PageIndex Might be the Architecture We’ve Been Missing was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.