store
Stores a document along with its pre-computed vector embedding.
Return
A unique string identifier for the stored document.
Parameters
document
The document to store.
vector
The pre-computed vector embedding for the document.
Updates a document along with its pre-computed vector embedding under the specified ID. Only updates if a document with the given ID already exists.
Return
true if the document was successfully updated, false if no document with the given id exists.
Parameters
id
The unique identifier of the document to update.
document
The updated document.
vector
The pre-computed vector embedding for the document.