add_documents | R Documentation |
Add Documents to a Collection
add_documents(
client,
collection_name,
documents,
ids,
metadatas = NULL,
embeddings = NULL,
uris = NULL,
tenant = "default_tenant",
database = "default_database"
)
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") |
TRUE on success
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.