AddToVectorDatabase
AddToVectorDatabase[db,{vec1,…}]
adds a list of vectors veci to the VectorDatabaseObject[…] db.
AddToVectorDatabase[db,{vec1,…}{val1,…}]
adds vector and metadata to the database.
Details
![](Files/AddToVectorDatabase.en/details_1.png)
- AddToVectorDatabase extends an existing VectorDatabaseObject with additional data, expanding the database’s storage and search capabilities.
- Possible values for the data to be added include:
-
{vec1,…} a list of vectors {vec1val1,…} a list of vectors and associated values {vec1,…}{val1,…} a rule between vectors and values - Accepted forms of vali include:
-
"string" string labels <"tag1"v1,… > an association of tags and metadata values
Examples
open allclose allScope (4)
Add a list of vectors to an empty database:
Add a new vector to an existing database:
Add vectors together with simple labels:
Add vectors together with labels in an Association:
Text
Wolfram Research (2024), AddToVectorDatabase, Wolfram Language function, https://reference.wolfram.com/language/ref/AddToVectorDatabase.html.
CMS
Wolfram Language. 2024. "AddToVectorDatabase." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AddToVectorDatabase.html.
APA
Wolfram Language. (2024). AddToVectorDatabase. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AddToVectorDatabase.html