Vectorless RAG: Rethinking Retrieval for Enterprise AI

Vectorless RAG: Rethinking Retrieval for Enterprise AI

By: Mayur, Navdeep

For the last two years, the default recipe for retrieval-augmented generation (RAG) has been almost a reflex: chunk your documents, embed every chunk with a transformer, dump the vectors into a vector database, and at query time pull the top-K nearest neighbors by cosine similarity. It works well enough on a demo. It works less well on a 50-page contract, a 10-K filing, a clinical guideline, or a 200-document due-diligence folder.

This post is about a different idea that we have been quietly betting on for our enterprise customers: vectorless RAG. No embeddings. No vector index. No top-K. Instead, retrieval becomes a reasoning problem over the natural structure of your documents — sections, subsections, tables, folders — navigated by an LLM the same way a human analyst would flip through a binder.

We did not invent the idea. Frameworks like PageIndex have pushed it into the mainstream, and the results on long-document benchmarks (FinanceBench, legal QA, regulatory search) have been striking enough that we now reach for vectorless retrieval first on any enterprise workload where accuracy, auditability, or recall matter more than raw QPS.

Here is the concept, end to end.

Why classic vector RAG hits a ceiling

Vector RAG is not wrong — it is just optimised for the wrong thing. Two failure modes show up again and again at enterprise scale, and both get worse as the corpus grows.

1. Embeddings have a hard representation ceiling

A single embedding has to compress a chunk of text into a few hundred floating-point numbers, and the encoder itself caps input length at a few hundred to a few thousand tokens. That cap forces two compromises that silently degrade answers:

- Chunking shreds semantic continuity. Real enterprise documents have nested sections, footnotes that qualify the paragraph two pages back, tables whose meaning lives in the surrounding prose, and cross-references that span the whole file. Sliding a 512-token window across that structure is roughly like photocopying a book one paragraph at a time and then throwing the spine away. The chunk that contains the answer is very often missing the chunk that frames it. - The retriever is blind to context. Only the literal user query is embedded. Conversation history, the user's role ("I am the lead auditor"), the document they are currently looking at, the previous turn's clarification — none of it can be packed into the query vector without blowing the encoder's input budget. The retriever sees a context-stripped probe, not a real question asked in a real situation.

2. Similarity is not relevance

Vector search ranks by cosine similarity, but what users actually want is relevance. The two come apart in both directions:

- Similar but not relevant (low precision). In legal, medical, and financial text, language is highly repetitive and small differences carry enormous meaning. Two paragraphs can look almost identical to an embedding model and yet say opposite things about who is liable, what dose to administer, or which exclusion clause applies. Vector search happily returns the wrong one because it "looks right". - Relevant but not similar (low recall). The right answer is often phrased very differently from the query, or lives many sections away from the most-cited passage. Surfacing it requires reasoning about the document's structure — "the answer to a covenant question is probably in Article VII, not in the Recitals" — not surface-level word matching. Vector search has no mechanism for that, so the genuinely relevant chunk falls past rank K and disappears silently. You don't get an error; you just get a worse answer.

These aren't edge cases. They are the two failure modes that pushed us to look for a different primitive.

What "vectorless RAG" actually means

Vectorless RAG replaces the embed-and-rank pipeline with a much older idea: a tree and a reader.

Every document is parsed into a tree that mirrors its natural hierarchy — think of the table of contents of a book. Parts contain chapters, chapters contain sections, sections contain subsections, subsections contain pages, pages contain content blocks (paragraphs, tables, figures). The tree is built once at ingestion, deterministically, with no embedding model in the loop.

At query time, an LLM walks that tree. At each node it answers exactly one question:

> Given the user's query, the conversation so far, and where I am in the document, is the answer likely to live inside this subtree — yes or no?

If yes, descend. If no, prune. Repeat until the LLM is standing on the leaf-level content that actually answers the question.

That is the entire retrieval algorithm. No embeddings, no cosine similarity, no fixed top-K, no chunk size to tune.

Three properties fall out of this design, and each one is exactly what classic vector RAG cannot offer.

Relevance classification, not similarity scoring

The LLM is not computing a 768-dimensional proxy for "aboutness". At every node it makes a yes/no relevance judgment using full-document understanding — the section heading, the surrounding hierarchy, and the meaning of the query in context. The two failure modes of similarity search (similar-but-irrelevant, relevant-but-dissimilar) simply do not apply, because the retriever is reasoning about relevance, not approximating it.

Retrieval depends on context

Every navigation decision is conditioned on the full query, the conversation history, the user's role, and the path the LLM has already walked. There is no fixed-length encoder cap forcing context to be dropped before retrieval starts. The same corpus, asked the same literal question by two different users in two different conversations, can produce two different retrieval paths — which is exactly what an enterprise user expects.

Transparent, auditable retrieval

A vector search returns a flat list of chunks with similarity scores that nobody outside ML can interpret. A vectorless RAG search returns a path: the ordered list of nodes the LLM opened, the ones it skipped, and the leaf that produced the evidence. You can render that path to the end user as a citation chain. You can replay it against a different model. You can show it to a compliance officer. For regulated industries this property alone is often the reason the project ships.

Scaling beyond a single document: the file system as the outer tree

The obvious objection is scale. Vector RAG scales effortlessly to billions of chunks because embeddings are precomputed and approximate nearest-neighbour search is a solved engineering problem. Does an LLM really walk a million document trees on every query?

It does not have to, because of an observation that is almost too obvious to state: a file system is already a tree. Folders contain subfolders, subfolders contain files. Every document store you have ever used — S3, SharePoint, a local drive, a DMS — gives you a pre-built hierarchy over the entire corpus for free.

So the natural scaling move is to make the file system itself the outer layer of the tree. Each document tree hangs off a leaf of the file system tree, and the whole corpus becomes one big tree. The same LLM navigation policy that walks the sections of one 200-page filing now walks the directory hierarchy of a million-document drive and then descends, without changing tools, into the internal tree of whichever file looks promising.

This is the core insight: retrieval at scale is the same algorithm as retrieval inside a single document, applied to a bigger tree.

Why a raw file system isn't enough

A naive folder tree gets you surprisingly far, but it breaks for three reasons at enterprise scale:

1. Often there is no real hierarchy. Many corpora are effectively flat — one S3 bucket, one SharePoint library, millions of files in a single pool with nothing but a row of metadata. 2. The hierarchy is one-dimensional. A contract belongs simultaneously to a vendor, a region, a fiscal year, a product line, and a legal entity. A folder tree forces you to pick one axis and lose the rest. 3. Folder labels are unreliable. Real corpora accumulate folders called misc/, finalv3USETHIS.pdf, and 2019legacy/. Even tidy paths like /finance/2024/ say nothing about whether the document is about pricing risk or liquidity. The LLM ends up pruning on folder names rather than document meaning.

The fix is to treat the outer tree the same way we treat the inner one: not as something inherited from disk, but as something constructed for retrieval.

Virtual nodes, query-dependent trees, adaptive traversal

Three techniques, all complementary, take vectorless RAG from "works on a single document" to "works on millions":

- Virtual nodes. When the corpus has no usable hierarchy, build one. Cluster documents into topic nodes (topic models or LLM-driven grouping). Tag each document with LLM-inferred metadata — category, summary, key entities — and promote those tags to internal nodes in the tree. The same document can sit under more than one virtual ancestor (vendor and region and year). A flat file system cannot express this; a constructed tree can. - Query-dependent trees. Different questions want different hierarchies over the same corpus. "What did vendor X charge us in 2024?" wants a tree organised by vendor then year. "Which contracts are up for renewal next quarter?" wants a tree organised by status and renewal date. Build the outer tree on demand, conditioned on the query — pick the metadata axes that matter, surface the clusters that matter, nest them to the depth that matters. Same documents, infinite views, zero re-indexing. - Adaptive traversal (dynamic flattening). A static "always descend layer by layer" policy is the wrong default. When child labels are informative (/contracts/2024/vendorX/), descend one layer at a time and prune on labels. When child labels are uninformative (misc/, folder1/), collapse the subtree to its leaves and defer the decision to the actual content. The depth of the search shrinks to the depth that actually carries information for this query.

That last point is the one that makes the economics work: the LLM never reads structure that does not help it.

Where vectorless RAG wins — and where it doesn't

We are not here to claim vectors are dead. The honest engineering answer is: pick the primitive that matches the workload.

Vectorless RAG is the right default when:

- documents are long and structured (filings, contracts, RFPs, clinical guidelines, policies, manuals); - accuracy and recall matter more than QPS (legal, medical, financial, audit, compliance); - answers must be auditable — you need to show a regulator or an analyst exactly why a passage was returned; - the corpus is dynamic and re-embedding everything on every model swap is a real operational cost; - the language is repetitive and adversarial to similarity search (small wording differences carry critical meaning).

Classic vector RAG is still the right default when:

- you are doing semantic search over short, mostly independent snippets (product descriptions, support tickets, knowledge-base Q&As, captions); - latency budgets are tight and QPS is high; - you genuinely want fuzzy "find me things like this" behaviour rather than precise relevance judgments.

In practice, the right enterprise stack is often hybrid. We use vectorless tree search for the long-document, high-stakes, audit-heavy workloads, and we keep a lightweight vector index for fast keyword-style lookup over short tickets or for first-pass recall before a tree-based re-ranker takes over. The two are complementary, not competing.

Implementing vectorless RAG in practice

If you want to prototype this yourself, the moving parts are smaller than they sound:

1. Document parsing. Convert each source document into a structured tree — sections, subsections, pages, content blocks. Good open parsers (Unstructured, MarkItDown, LlamaParse, plus PageIndex's own parser) get you 80% of the way for PDFs, DOCX, and HTML. 2. Outer tree construction. Start with the existing folder structure. Augment it with LLM-generated metadata per document (summary, entities, doc type, dates, parties). Persist the metadata in a normal columnar store — DuckDB, Postgres, Iceberg — so query-dependent trees can be assembled with plain SQL at query time. 3. Navigation policy. Wrap a small, cheap LLM (a 7B–70B class model is plenty for node-level yes/no calls) with a tool that exposes two operations: listchildren(node) and readleaf(node). The policy loop is ten lines of Python. 4. Caching and traces. Cache node-level relevance verdicts per (query embedding-of-intent, node) pair so common questions get cheaper over time. Log every traversal as a citation trace — it is your audit log and your evaluation dataset. 5. Evaluation. Measure on the metrics that actually matter for your workload: leaf-level recall@K over the document tree (not over chunks), citation correctness, and end-task accuracy. Standard MTEB-style retrieval scores do not capture what tree search is good at.

You can stand up a working vectorless RAG prototype on a single laptop in a weekend. We have done it for clients with corpora ranging from a few hundred contracts to several million regulatory filings. The cost profile is fundamentally different from a vector stack: more LLM calls per query, far less infrastructure, no embedding refresh jobs, and dramatically better answers on the workloads it was designed for.

How we think about retrieval design at DataOrc

Our default playbook for any enterprise RAG engagement now looks like this:

1. Start from the workload, not the tooling. What is the user actually asking? How long are the documents? What does "wrong answer" cost? 2. Pick the retrieval primitive that matches. Tree search for long, structured, high-stakes documents. Vectors for short, semantic, high-QPS lookups. SQL over your warehouse or lakehouse for anything that is already structured — surprisingly often the right answer. 3. Make retrieval auditable from day one. Every retrieved passage ships with the path that produced it. This is non-negotiable in regulated industries and quietly invaluable everywhere else. 4. Treat retrieval as a system, not a vector index. The interesting engineering lives in the tree you build over your corpus, the metadata you attach to it, and the policy that walks it — not in which ANN library you picked.

Vectorless RAG is not a silver bullet. It is a sharper tool for a class of problems that vector search has been quietly failing on for two years, and it is finally mature enough to put in front of enterprise users.

A little bit about us

At DataOrc we design data and AI systems with scale, cost-effectiveness, and auditability as first-class citizens. We have built petabyte-scale data platforms, 400k TPS portals, and production RAG systems for regulated industries from scratch — and we believe the next generation of enterprise AI will be won by teams that take retrieval as seriously as they take the model.

If you are hitting the wall with your current vector RAG stack — accuracy falling short, recall gaps you cannot audit, retrieval blind to context — talk to us. We run free open-consulting sessions with our tech team and would love to show you what tree search at scale looks like on your data.