pub struct ContragConfig {
pub entities: Vec<EntityConfig>,
pub embedder: EmbedderConfigDef,
pub chunking: ChunkingConfig,
pub vector_store: VectorStoreConfig,
pub system_prompt: Option<String>,
}Expand description
Main configuration for ContRAG
Fields§
§entities: Vec<EntityConfig>Entity configurations
embedder: EmbedderConfigDefEmbedder configuration
chunking: ChunkingConfigChunking configuration
vector_store: VectorStoreConfigVector store configuration
system_prompt: Option<String>Optional system prompt for context generation
Trait Implementations§
Source§impl Clone for ContragConfig
impl Clone for ContragConfig
Source§fn clone(&self) -> ContragConfig
fn clone(&self) -> ContragConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContragConfig
impl Debug for ContragConfig
Source§impl<'de> Deserialize<'de> for ContragConfig
impl<'de> Deserialize<'de> for ContragConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContragConfig
impl RefUnwindSafe for ContragConfig
impl Send for ContragConfig
impl Sync for ContragConfig
impl Unpin for ContragConfig
impl UnwindSafe for ContragConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more