OriginChainDB
Database endpoints

Build an IVF-PQ index

Train a compressed IVF-PQ index from the vectors already stored in a table.

POST /v1/tenants/{tenant}/vector/{table}/create-ivf-pq-index

Compress an existing vector collectionDiscarding raw vectors is irreversible and affects later exact refinement.
  1. Start with stored vectorsChoose the table and compression preset.
  2. Train the compressed indexBuild the IVF-PQ representation from those vectors.
  3. Check training and installationInspect whether raw vectors were retained.

Before you start

Use your database bearer token.

Connection setup

Provide enough compatible stored vectors to train the index. Three-value toy examples alone do not establish training readiness. Review drop_raw_vectors before discarding raw data.

Path parameters

FieldTypeRequired
tenantstringRequired
tablestringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • preset: high_recall | compressed.
  • seed defaults to 0.
  • drop_raw_vectors (default false) irreversibly discards the stored raw vectors table-wide, keeping only compressed codes;
  • refused with 400 for the high_recall preset.
FieldTypeRequired
drop_raw_vectorsbooleanOptional
presetstringRequired
seedintegerOptional

Read the result

trained and installed report the training outcome. Check raw_vectors_retained before relying on exact refinement later. Setting drop_raw_vectors discards the original vectors irreversibly.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
409Resolve the conflict before retrying.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
501Check deployment support for this operation.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd