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.

Implementors§