upsert()
function:
Adding Items with Contents
It’s also possible to store item contents alongside vectors. To do this, includecontents
in the upsert()
call.
The contents field will be encrypted using the index key.
Adding Items with Metadata
CyborgDB also supports metadata storage, retrieval and filtering. To add metadata to an item, includemetadata
in the upsert()
call.
All metadata fields will be encrypted using the index key.
Automatic Embedding Generation
To use automatic embedding generation, use the Docker Service or install with
pip install cyborgdb-service[embeddings]
embedding_model
during index creation, you can automatically generate embeddings for items by providing contents
to the upsert()
call:
embedding_model
will automatically generate embeddings for the contents
field. The contents will also be stored alongside the generated embeddings.
This feature uses various embedding models available through the service. You can use any model supported by the CyborgDB service, including models from the HuggingFace Model Hub.