pub struct DefaultRagEngineBuilder { /* private fields */ }Expand description
Builder for DefaultRagEngine.
Implementations§
Source§impl DefaultRagEngineBuilder
impl DefaultRagEngineBuilder
Sourcepub fn pipeline(self, pipeline: ChannelPipeline) -> Self
pub fn pipeline(self, pipeline: ChannelPipeline) -> Self
Set the channel pipeline configuration.
Sourcepub fn context_builder(self, cb: ContextBuilder) -> Self
pub fn context_builder(self, cb: ContextBuilder) -> Self
Set the context builder for token budget management.
Sourcepub fn prompt_template(self, pt: PromptTemplate) -> Self
pub fn prompt_template(self, pt: PromptTemplate) -> Self
Set the prompt template for LLM generation.
Sourcepub fn embedder(self, embedder: Arc<dyn Embedder>) -> Self
pub fn embedder(self, embedder: Arc<dyn Embedder>) -> Self
Set the embedder for semantic search.
Sourcepub fn semantic_store(self, store: Arc<dyn SemanticSearch>) -> Self
pub fn semantic_store(self, store: Arc<dyn SemanticSearch>) -> Self
Set the semantic vector store.
Sourcepub fn metadata_store(self, store: Arc<dyn MetadataStore>) -> Self
pub fn metadata_store(self, store: Arc<dyn MetadataStore>) -> Self
Set the metadata store for metadata-based search.
Sourcepub fn graph_store(self, store: Arc<dyn KnowledgeGraphSearch>) -> Self
pub fn graph_store(self, store: Arc<dyn KnowledgeGraphSearch>) -> Self
Set the knowledge graph store.
Sourcepub fn build(self) -> DefaultRagEngine
pub fn build(self) -> DefaultRagEngine
Build the DefaultRagEngine with the configured components.
Trait Implementations§
Source§impl Default for DefaultRagEngineBuilder
impl Default for DefaultRagEngineBuilder
Source§fn default() -> DefaultRagEngineBuilder
fn default() -> DefaultRagEngineBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultRagEngineBuilder
impl !UnwindSafe for DefaultRagEngineBuilder
impl Freeze for DefaultRagEngineBuilder
impl Send for DefaultRagEngineBuilder
impl Sync for DefaultRagEngineBuilder
impl Unpin for DefaultRagEngineBuilder
impl UnsafeUnpin for DefaultRagEngineBuilder
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