upsert_documents: Upsert Documents to a Collection

View source: R/documents.R

upsert_documentsR Documentation

Upsert Documents to a Collection

Description

Upsert Documents to a Collection

Usage

upsert_documents(
  client,
  collection_name,
  documents,
  metadatas = NULL,
  ids = NULL,
  embeddings = NULL,
  uris = NULL
)

Arguments

client

A ChromaDB client object

collection_name

Name of the collection

documents

List of documents to upsert

metadatas

List of metadata for each document

ids

Vector of unique IDs for the documents

embeddings

Optional pre-computed embeddings

uris

Optional vector of URIs associated with the documents

Value

Response from the API


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