Skip to main content

Module core

Module core 

Source
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
DocumentId
Unique identifier for documents
Entity
An entity extracted from text
EntityId
Unique identifier for entities
EntityMention
A mention of an entity in text
KnowledgeGraph
Knowledge graph containing entities and their relationships
Relationship
Relationship between entities
TextChunk
A chunk of text from a document

Traits§

ChunkingStrategy
Core trait for text chunking strategies