pub trait Knowledge: Chunker {
// Required methods
fn load(&self) -> Result<String, KnowledgeError>;
fn enrich(&self, input: &str) -> Result<String, KnowledgeError>;
}Required Methods§
Sourcefn load(&self) -> Result<String, KnowledgeError>
fn load(&self) -> Result<String, KnowledgeError>
Load the content into the memory.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".