Expand description
Core traits and types Core data structures and abstractions for GraphRAG
This module contains the fundamental types, traits, and error handling that power the GraphRAG system.
Re-exports§
pub use error::ErrorContext;pub use error::ErrorSeverity;pub use error::GraphRAGError;pub use error::Result;pub use metadata::ChunkMetadata;pub use registry::RegistryBuilder;pub use registry::ServiceConfig;pub use registry::ServiceContext;pub use registry::ServiceRegistry;pub use traits::*;
Modules§
- error
- Unified error handling for the GraphRAG system
- metadata
- Chunk metadata for semantic enrichment
- registry
- Service registry for dependency injection
- traits
- Core traits for GraphRAG system components
Structs§
- ChunkId
- Unique identifier for text chunks
- Document
- A document in the system
- Document
Id - Unique identifier for documents
- Entity
- An entity extracted from text
- Entity
Id - Unique identifier for entities
- Entity
Mention - A mention of an entity in text
- Knowledge
Graph - Knowledge graph containing entities and their relationships
- Relationship
- Relationship between entities
- Text
Chunk - A chunk of text from a document
Traits§
- Chunking
Strategy - Core trait for text chunking strategies