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