How the knowledge engine works.
Your AI assistants don't just search your documents — they understand them. Here's the 7-stage pipeline that makes that possible.
The 7-stage processing pipeline
Every document you upload goes through this pipeline. Each stage has a visible status indicator — you can see exactly where processing stands and inspect the output at every step.
Text Extraction
Documents are parsed or OCR'd to extract all text content. PDFs, Word docs, spreadsheets, images, HTML — all supported. Large PDFs are automatically split and processed in parallel.
Semantic Chunking
An LLM identifies natural topic boundaries in your documents — not arbitrary word counts. Each chunk preserves section headers and context, typically around 4,000 characters with intelligent overlap.
Chunk Enrichment
Each chunk is enriched by an LLM that resolves pronouns, expands acronyms, converts relative dates to explicit ones, and clarifies ambiguous references. The result is text that stands on its own without surrounding context.
Entity Extraction
People, organizations, locations, concepts, products, events, dates, and numbers are extracted from each chunk along with the relationships between them. You define the extraction templates — Arro follows your rules.
Knowledge Graph Indexing
Extracted entities and relationships are inserted into an isolated knowledge graph for your database. This lets Arro follow connections between ideas across different documents — not just match keywords.
Embedding Generation
Three separate embeddings are generated for each chunk: one from the enriched content, one from an LLM-generated summary, and five from hypothetical questions the chunk could answer. This triple-embedding approach dramatically improves search recall.
Graph Cleanup
Orphaned nodes and stale connections are removed to keep the knowledge graph clean and fast as your document library evolves.
Full transparency at every stage
Unlike most RAG systems that operate as a black box, Arro lets you see everything:
- ✓Chunk inspector — View each chunk's original text alongside its enriched version with color-coded diffs showing what changed
- ✓Entity visualization — Color-coded badges for each entity type with relationship triplets displayed inline
- ✓Interactive graph view — Mermaid-rendered knowledge graph with entity search and drill-down to source chunks
- ✓Search execution tracing — Full logs for every search showing strategy used, results scored, and latency
5 search strategies
Different questions need different approaches. Arro supports five configurable search strategies — you set the default per database, and can tune it inline during chat.
Vector Only
Pure semantic similarity search across all three embedding types (content, summary, and hypothetical questions), merged via Reciprocal Rank Fusion for balanced results.
Graph Only
Traverses the knowledge graph from entities extracted from your query. Finds chunks connected by relationships rather than word similarity.
Graph then Vector
Starts with graph traversal to identify relevant document clusters, then runs vector search within those results for precision. This is the default strategy.
Vector then Graph
Runs vector search first, then expands results by following graph connections to related chunks. Good for discovering related context you didn't think to ask about.
Hybrid Boost
Both vector and graph searches run independently. Results are merged using Reciprocal Rank Fusion — chunks that appear in both sets get boosted scores.
Automatic query enhancement
Before searching, Arro automatically expands your query into multiple context-aware variations. A user asking "what's our refund policy?" might generate searches for "return procedures," "money-back guarantee terms," and "customer cancellation process" — casting a wider net without you having to think about synonyms.
You can also tune search parameters per-query right in chat: similarity threshold (30-100%), max results, graph traversal depth (1-5 hops), and which vector sources to use.
