powered by
Add documents to a collection
vdb_add(db, texts, metadata = NULL, ids = NULL)
Vectrix object
Vectrix object or collection name
Character vector of texts
Optional metadata
Optional IDs
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