add_documents: Add Documents to a Collection

View source: R/documents.R

add_documentsR Documentation

Add Documents to a Collection

Description

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")

Value

TRUE on success


rchroma documentation built on April 4, 2025, 1:37 a.m.