pub struct RagConfig {
pub chunk_size: usize,
pub chunk_overlap: usize,
pub top_k: usize,
pub similarity_threshold: f32,
}Expand description
Configuration parameters for the RAG pipeline.
Fields§
§chunk_size: usizeMaximum chunk size in characters.
chunk_overlap: usizeNumber of overlapping characters between consecutive chunks.
top_k: usizeNumber of top results to return from vector search.
similarity_threshold: f32Minimum similarity score for results (results below this are filtered out).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RagConfig
impl<'de> Deserialize<'de> for RagConfig
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
impl StructuralPartialEq for RagConfig
Auto Trait Implementations§
impl Freeze for RagConfig
impl RefUnwindSafe for RagConfig
impl Send for RagConfig
impl Sync for RagConfig
impl Unpin for RagConfig
impl UnsafeUnpin for RagConfig
impl UnwindSafe for RagConfig
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