index_add
Add documents to a persistent in-memory index for later querying, with optional IDs and metadata.
Instructions
Add documents to the persistent in-memory index for later querying.
Args: documents: Documents to embed and store. ids: Optional ids (auto-generated if omitted). metadatas: Optional metadata dict per document.
Returns the number added and their ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| documents | Yes | ||
| metadatas | No |