Learn R Programming

VectrixDB (version 1.1.2)

vdb_add: Add Documents

Description

Add documents to a collection

Usage

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

Value

Vectrix object

Arguments

db

Vectrix object or collection name

texts

Character vector of texts

metadata

Optional metadata

ids

Optional IDs

Examples

Run this code
if (FALSE) {
vdb_add(db, c("Document 1", "Document 2"))
vdb_add("my_docs", c("Another doc"))
}

Run the code above in your browser using DataLab