pub struct KnowledgeBaseExample;Expand description
Example: Knowledge Base
This example demonstrates domain-specific knowledge storage and retrieval.
Implementations§
Source§impl KnowledgeBaseExample
impl KnowledgeBaseExample
Sourcepub async fn knowledge_storage() -> Result<()>
pub async fn knowledge_storage() -> Result<()>
Domain-specific knowledge storage
Sourcepub async fn keyword_search() -> Result<()>
pub async fn keyword_search() -> Result<()>
Keyword-based search
Sourcepub async fn ai_integration(api_key: &str) -> Result<()>
pub async fn ai_integration(api_key: &str) -> Result<()>
AI evaluator integration
Sourcepub async fn persistence() -> Result<()>
pub async fn persistence() -> Result<()>
Persistence (save/load)
Sourcepub async fn multi_domain() -> Result<()>
pub async fn multi_domain() -> Result<()>
Multi-domain categorization
Auto Trait Implementations§
impl Freeze for KnowledgeBaseExample
impl RefUnwindSafe for KnowledgeBaseExample
impl Send for KnowledgeBaseExample
impl Sync for KnowledgeBaseExample
impl Unpin for KnowledgeBaseExample
impl UnwindSafe for KnowledgeBaseExample
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more