Retrieval
Index content
Send documents directly for small batches or create asynchronous jobs for larger imports.
Choose the ingestion path
Use direct indexing when the caller needs immediate confirmation. Use jobs for large imports, scheduled re-indexing or work that should not block the client.
Open Try Retrieval, select the database and use Documents to enter an ID, content and optional metadata, then select Index document. For asynchronous imports, use Jobs to enqueue documents and check the job status.
Document shape
Give every document a stable id, searchable content and optional metadata. Include image input only when the connected embedding model supports it.
API example
Set QDIV0_DATABASE_ID and enqueue a sample document. The request creates an indexing job; for direct indexing use index-direct with the same body.
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/$QDIV0_DATABASE_ID/index-jobs" \
4 -H "Authorization: Bearer $QDIV0_USER_API_KEY" \
5 -H "Content-Type: application/json" \
6 --data '{"documents":[{"id":"doc-1","content":"Returns are accepted within 30 days.","metadata":{"category":"support"}}]}'Another API example 2
Set QDIV0_DATABASE_ID and QDIV0_JOB_ID to the ID returned when enqueueing to check job status.
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 "https://api.qdiv0.com/v1/flexible-vector-databases/$QDIV0_DATABASE_ID/index-jobs/$QDIV0_JOB_ID" \
3 -H "Authorization: Bearer $QDIV0_USER_API_KEY"