contrag_core/
lib.rs

1pub mod config;
2pub mod context_builder;
3pub mod data_sources;
4pub mod embedders;
5pub mod entity;
6pub mod error;
7pub mod types;
8pub mod utils;
9pub mod vector_store;
10
11// Re-exports for convenience
12pub use config::{ContragConfig, EntityConfig, load_config};
13pub use context_builder::ContextBuilder;
14pub use entity::{RagEntity, EntityRelationship, RelationshipType};
15pub use error::{ContragError, Result};
16pub use types::*;
17
18// Prelude module for common imports
19pub mod prelude {
20    pub use crate::config::{ContragConfig, EntityConfig};
21    pub use crate::context_builder::ContextBuilder;
22    pub use crate::entity::{RagEntity, EntityRelationship, RelationshipType};
23    pub use crate::error::{ContragError, Result};
24    pub use crate::types::*;
25    pub use crate::data_sources::DataSource;
26    pub use crate::embedders::Embedder;
27    pub use crate::vector_store::VectorStore;
28}