1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! GraphRAG — knowledge graph-augmented retrieval.
//!
//! Fuses structured knowledge graph data with vector and BM25 retrieval to
//! produce richer, more coherent context for LLM calls.
//!
//! # Search modes
//!
//! - [`search::LocalSearch`] — entity-seeded neighbourhood traversal with
//! optional causal path expansion
//! - [`search::GlobalSearch`] — community-summary ranking by lexical overlap
//! - [`search::HybridSearch`] — combines both
//!
//! # Extraction
//!
//! LLM-backed extraction uses the [`types::EntityExtractor`] and
//! [`types::RelationExtractor`] traits; callers provide implementations.
//! Prompt construction happens inside the pipeline; only the `complete()`
//! call is delegated to the injected [`types::LlmClient`].
//!
//! # Antifragility
//!
//! [`types::IngestObservation`] records each ingestion batch and computes
//! an information-gain score used by the antifragility tracker.
pub use GraphRagConfig;
pub use ;
pub use ;
pub use ;