PageIndex Vectorless Tree RAG vs. pgvector & Qdrant on Enterprise ERP Documentation
Why fixed-window vector chunking mangles ERP API manuals, statutory XML Schematron specs, and ISO/IATF quality procedures—and how hierarchical tree indexing with LLM reasoning achieves 100% provenance.
- 01Splitting ERP manuals and tax specifications into 512-token vector chunks (
pgvector,Qdrant) severs Markdown/PDF section headers from parameter tables, causing dangerous cross-endpoint hallucinations. - 02Inspired by
VectifyAI/PageIndex, vectorless hierarchical tree RAG parses documents into explicit section trees (H1 -> H2 -> H3, exact line ranges, token counts, and node summaries) navigated via LLM reasoning rather than approximate cosine similarity. - 03Eliminating embedding pipelines, HNSW index tuning, and chunk-overlap heuristics yields exact line-level citations and zero stale-embedding drift when docs update.
- 04Production enterprise agents pair a Relational Business Ontology (for live SQL/API state) with a Vectorless Hierarchical Document Index (for normative manuals, contracts, and statutory rules).
1. Why Fixed-Chunk Vector RAG (pgvector / Qdrant) Breaks on Technical ERP & Statutory Docs
The default RAG recipe—slicing documents into 500-token windows, computing dense embeddings, storing vectors in pgvector or Qdrant, and fetching top-k cosine neighbors—works acceptably on flat prose. Applied to 300-page ERP API specifications, WSDL contracts, IATF 16949 quality SOPs, or GİB UBL-TR Schematron manuals, it fails systematically:
- Header-Table Severing: Fixed token windows slice parameter tables away from their parent endpoint heading, mixing payload rules for
ModelType = 5(Customer Order) withModelType = 6(Purchase Order) or conflatingSaveAsDraftwith irreversibleSendInvoicecalls. - Diluted Lexical Precision on Error & Enum Codes: Dense vector spaces blur exact technical tokens like
Msg 468,RPC_E_SERVERFAULT,cha_evrak_tip = 63, orTICARIFATURAinto neighboring semantic clusters. - Broken Cross-Section Exceptions: When Section 2.1 states "Apply standard VAT rounding except under the export conditions in Section 6.4," cosine retrieval rarely pulls Section 6.4 into the same
top-5window.
2. How PageIndex Vectorless Hierarchical Tree RAG Works
When a senior systems engineer reads an unfamiliar ERP manual, they do not grep random 400-word fragments by semantic vibe. They scan the Table of Contents, read concise section summaries to locate the exact chapter and subsection, and read that entire subsection intact. PageIndex turns that exact reasoning workflow into a zero-vector tree index:
Classic Vector RAG (pgvector / Qdrant):
Doc -> Arbitrary 512-token split -> 1536-dim float embedding -> top_k=5 cosine ANN
Failure: Orphaned table rows, missed cross-references, opaque similarity thresholds.
PageIndex Vectorless Tree RAG:
1. Tree Build : Markdown / PDF -> Hierarchical JSON Tree
{ node_id: "0014", title: "3.2 UBL-TR Return Invoice Rules",
line_range: [210, 268], token_count: 640,
summary: "Mandatory BillingReference fields and TICARIFATURA blocks." }
2. Traversal : Agent inspects lightweight tree skeleton (titles + summaries) ->
Selects node "0014" by reasoning -> Reads exact lines 210–268 in full!3. Production Blueprint: Enterprise Ontology + Vectorless Document Trees
Neither SQL alone nor document retrieval alone answers multi-hop operational questions. Pairing an enterprise ontology with vectorless tree RAG cleanly separates relational state from normative text:
- Live Relational State -> Enterprise Business Ontology: Inventory balances, lot quarantine flags, open AR aging, and caller RBAC execute deterministically against live ERP/MES views.
- Normative Rules & Technical Manuals -> Hierarchical Tree Index: Supplier contracts, SOPs, and statutory tax guides attach to ontology entity types as navigable document trees with guaranteed section and line-range provenance.
For curated corpora of technical manuals, regulatory specs, and SOPs, hierarchical tree indexing eliminates embedding drift and vector-DB ops while giving agents full-section context and verifiable line citations.
Glossary Concepts Referenced in This Guide
FOREIGN KEY constraints—common across mature ERP and manufacturing databases.Free to reference in engineering docs, ADRs, articles, and course syllabi with attribution.
[PageIndex Vectorless Tree RAG vs. pgvector & Qdrant on Enterprise ERP Documentation — Ontoloji.org](https://ontoloji.org/en/guides/pageindex-vectorless-tree-rag-vs-pgvector-and-qdrant)