semantic_index
Index documents into a collection for semantic search. Automatically chunks and embeds text locally, with optional document_id to replace existing entries.
Instructions
Index a document into a collection for semantic search. Text is automatically chunked and embedded using a local ML model (no API calls). Use document_id to replace an existing document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | The text content to index | |
| metadata | No | Optional metadata to associate with the document (e.g. source, title) | |
| collection | Yes | Name of the collection to index into | |
| document_id | No | Optional unique ID for the document. If provided and already exists, the document is replaced. |