vdb_add: Add Documents

View source: R/cli.R

vdb_addR Documentation

Add Documents

Description

Add documents to a collection

Usage

vdb_add(db, texts, metadata = NULL, ids = NULL)

Arguments

db

Vectrix object or collection name

texts

Character vector of texts

metadata

Optional metadata

ids

Optional IDs

Value

Vectrix object

Examples

## Not run: 
vdb_add(db, c("Document 1", "Document 2"))
vdb_add("my_docs", c("Another doc"))

## End(Not run)

VectrixDB documentation built on Feb. 20, 2026, 5:09 p.m.