Add Documents to a Collection
Usage
add_documents(
client,
collection_name,
documents,
ids,
metadatas = NULL,
embeddings = NULL,
uris = NULL,
tenant = "default_tenant",
database = "default_database"
)
Arguments
- client
A ChromaDB client object
- collection_name
Name of the collection
- documents
List of documents to add
- ids
Vector of unique IDs for the documents (required)
- metadatas
List of metadata for each document (optional)
- embeddings
Optional pre-computed embeddings
- uris
Optional vector of URIs associated with the documents
- tenant
The tenant name (default: "default")
- database
The database name (default: "default")