upsert() function:
Array2D in C++, see the API Reference.
Adding Items with Contents
It’s also possible to store item contents alongside vectors. To do this, simply additem (which must be bytes) to the upsert() call:
Understanding Conflicts & Updates
Since Cyborg Vector Search is end-to-end encrypted, it cannot manage conflicts and updates in the way that “traditional” Vector DBs do. Since index contents can’t be viewed server-side, conflicts are handled client-side. The way this works is simple:upsert calls on the same ID will logically “overwrite” the ID, but not via a deletion. Rather, the original entry is kept but ignored in favor of the second one during query operations.
API Reference
For more information on adding items to an encrypted index, refer to the API reference:Python API Reference
API reference for
upsert() in PythonC++ API Reference
API reference for
Upsert() in C++