ontoloji.orgOpen Reference Hub
Retrieval & RAG Architecture11 min read·Updated: 2026-12-03·Türkçe sürüm →

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.

Executive Summary — Key Takeaways
  • 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) with ModelType = 6 (Purchase Order) or conflating SaveAsDraft with irreversible SendInvoice calls.
  • Diluted Lexical Precision on Error & Enum Codes: Dense vector spaces blur exact technical tokens like Msg 468, RPC_E_SERVERFAULT, cha_evrak_tip = 63, or TICARIFATURA into 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-5 window.

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:

Fixed-Window Vector Chunking vs. PageIndex Reasoning-Based Tree Traversal
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.
Engineering Takeaway: Drop Unnecessary Vector Infrastructure for Structured Manuals

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

Open License (CC BY 4.0) · Cite This Page

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)

More Guides in This Series

Core Architecture
How AI Uses an Ontology
9 min read
Agent Engineering
Agent Harness vs. Ontology
8 min read
Data Engineering
ERP, CRM & MES Patterns
10 min read
Strategy & Governance
30-Day Ontology Strategy
7 min read
ERP Integration
ERP Ontology Integration Guide
11 min read
ERP Data Engineering
Logo Tiger, Nebim V3 & Turkish Unicode Traps
14 min read
Agent Governance
Adversarial Verification, Permissions & Compaction
13 min read
Verification Engineering
Absence-Aware Gates & Ratio Reconstruction
13 min read
Provenance & Governance
Draft vs. Normative Provenance Hygiene
12 min read
SAP & Protocol Architecture
SAP BTP, Cloud Connector & ORD Ontology
11 min read
ERP Write-Safety
Logo REST, Nebim Integrator & UBL-TR Safety
12 min read
Platform Architecture Comparison
Cortex, Genie, dbt & Cube vs. Ontology
12 min read
Systems Engineering & Forensics
ERP Integrator Anti-Patterns & Forensics
13 min read
Platform Architecture Comparison
Fabric IQ, D365 MCP & SAP Joule vs. Ontology
12 min read
Platform Architecture Comparison
Atlan, Stardog & Neo4j vs. Ontology
12 min read
Statutory & Financial Governance
GİB UBL-TR, VUK/TMS 29 & KVKK Ontology
13 min read
Agent Memory & Ontology Architecture
Cognee & Zep Graphiti vs. Ontology
11 min read
Protocol & Multi-Agent Architecture
MCP vs. OpenAPI & Specialist Agents
12 min read
Protocols & Standards
MCP 2026-07-28: Tasks, Events & Apps
13 min read
Agent Architecture & Governance
Agent Harness Engineering Rubric
12 min read
Agent Architecture & Governance
Multi-Agent Task Boards & Mailboxes
12 min read
Verification & Security
Generate-Evaluate-Repair & Observers
12 min read
Verification & Security
NSA MCP Security & CIMD vs. DCR
13 min read
Agent Architecture & Governance
OpenTelemetry for AI Agents & MCP
11 min read