RAGFlow
Open-source RAG and agentic-retrieval system from InfiniFlow. Its design is described in Context as Infrastructure - Knowledge Compilation for Retrieval in Agentic Systems with Harnesses: a configurable Knowledge Compilation pipeline at ingestion feeding a stateful retrieval harness at query time.
Repo: https://github.com/infiniflow/ragflow
Ingestion: compilation templates
The pipeline is a sequence of replaceable skills — parse, chunk, enrich, validate, assemble, register — and a template picks which artifacts get built: a navigation tree with claim–evidence leaves, entity–relation graph, ontology, LLM wiki, timeline, mind map, or session memory. Each compiled unit is stored with claim text, verbatim span, source chunk ID and offsets, validity metadata, extractor version and access labels, in a versioned, content-addressed store, so a claim resolves to the exact document version that produced it. See Verified Evidence.
Query time: the harness
Five stations — capability check, evidence prefetch, evidence gate, budgeted tool loop, deterministic close (Search Strategy Optimization). Retrieval is lexical: BM25 and grep over chunks plus a lexical leg over claim text, no dense leg. Default serving mode is evidence substitution: raw search as usual, with localized chunks replaced by their claim–evidence pairs and a gate (Evidence Sufficiency) choosing between answering from evidence and opening the raw chunk. The default gate is the Qwen decision model.
Per-tool serving policy has three modes: off, compiled-only, and compiled-first with raw text on demand. Navigation and graph tools are optional and are not used on a corpus with a compiled claim-leaf tree, since evidence projected onto search results answers the same question at lower token cost.
Related Concepts
- Knowledge Compilation · Verified Evidence · Evidence Sufficiency · Search Strategy Optimization
- RAG · Agentic Search