Retrieval
Create a Retrieval database
Connect a Retrieval database to a compatible embedding model and prepare it for indexing.
Choose the embedding model
Select an available embedding model, either a deployment or a compatible public model. QDivZero queries the model when creating the database to determine the vector dimension. The model also determines which modalities are supported.
Create and wait for readiness
In Retrieval, select Create Retrieval database. Enter a name and slug, select the embedding model and review the configuration before selecting Create database. Avoid the reserved public: slug prefix.
The service checks embedding compatibility when changing the connected model. Matching one test vector does not guarantee that existing documents and future queries remain compatible; review the impact before changing it.
API example
Create a Retrieval database. Replace embeddings-prod with an available embedding endpoint; creation queries the model and can incur charges.
Set QDIV0_USER_API_KEY to a personal uk_ key. The default account is used; for another account you belong to, add its identifier in the X-Account-ID header.
1curl --fail-with-body \
2 --request POST \
3 "https://api.qdiv0.com/v1/flexible-vector-databases" \
4 -H "Authorization: Bearer $QDIV0_USER_API_KEY" \
5 -H "Content-Type: application/json" \
6 --data '{"slug":"knowledge","name":"Knowledge","description":"Support content","embedding_serving_name":"embeddings-prod"}'