chroma_add_documents
Enables adding text documents to a Chroma collection with optional metadata. Specify collection name, document IDs, and content for efficient data storage and retrieval.
Instructions
Add documents to a Chroma collection.
Args:
collection_name: Name of the collection to add documents to
documents: List of text documents to add
ids: List of IDs for the documents (required)
metadatas: Optional list of metadata dictionaries for each document
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection_name | Yes | ||
documents | Yes | ||
ids | Yes | ||
metadatas | No |
Input Schema (JSON Schema)
{
"properties": {
"collection_name": {
"title": "Collection Name",
"type": "string"
},
"documents": {
"items": {
"type": "string"
},
"title": "Documents",
"type": "array"
},
"ids": {
"items": {
"type": "string"
},
"title": "Ids",
"type": "array"
},
"metadatas": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Metadatas"
}
},
"required": [
"collection_name",
"documents",
"ids"
],
"title": "chroma_add_documentsArguments",
"type": "object"
}