Skip to main content

add

Method
This is a method of the Knowledge class in the knowledge module.
Add content to knowledge base

Signature

def add(&mut self, content: &str, metadata: Option<HashMap<String, String>>) -> Result<AddResult>

Parameters

content
&str
required
No description available.
metadata
Option<HashMap<String
required
No description available.

Returns

Returns
Result<AddResult>
The result of the operation.