Skip to main content

Knowledge

Trait Knowledge 

Source
pub trait Knowledge: Chunker {
    // Required methods
    fn load(&self) -> Result<String, KnowledgeError>;
    fn enrich(&self, input: &str) -> Result<String, KnowledgeError>;
}

Required Methods§

Source

fn load(&self) -> Result<String, KnowledgeError>

Load the content into the memory.

Source

fn enrich(&self, input: &str) -> Result<String, KnowledgeError>

Enrich the knowledge with the input string.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§