Adds text documents to the vector store with optional metadata.Documentation Index
Fetch the complete documentation index at: https://docs.cyborg.co/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Parameter | Type | Description |
|---|---|---|
texts | Iterable[str] | Iterable of text strings to add |
metadatas | Optional[List[dict]] | (Optional) List of metadata dictionaries for each text |
ids | Optional[List[str]] | (Optional) List of IDs for the texts (auto-generated if not provided) |
**kwargs | Any | Additional keyword arguments (currently unused) |
Returns
List[str]: List of IDs for the added texts
Exceptions
ValueError
ValueError
- Throws if length of ids doesn’t match length of texts