Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Bindings: PRODUCT quantization after ArcadeData/arcadedb#10545 (SQL path, find_nearest, new index settings, docs) #443

Closed

Description

@tae898

ArcadeData#10545 (issue ArcadeData#10514) made a PRODUCT vector index search on its PQ codes and re-rank on the stored vectors, shrank its graph file, and honoured pqTrainingLimit. It is synced into main (77a5777). The bindings still describe and behave like the old engine.

Measured on ArcadeData#10545's head, SIFT-1M, 32 subspaces (notes: repros/pq-verify-10545-20261022): PRODUCT index files 170.0 MiB against 144.9 MiB for NONE (1.17x; 7.9x before the fix). recall@10 at efSearch 10/50/100/200/400: NONE .764/.965/.990/.997/.999; PRODUCT with the default rerankOversample 10 .986/.986/.986/.996/.999; rerankOversample 0 (PQ scores only) .617/.713/.720/.722/.722. No ab.py timing of PQ search exists yet, so no speed claim.

What is wrong here:

  • guide/vectors.md and api/database.md say SQL search scores with full-precision vectors, PQ gives no speedup and the files are larger (our Docs: say why quantization="PRODUCT" is not recommended #395). All three are now false.
  • VectorIndex.find_nearest calls findNeighborsFromVector, the exact walk, so on a PRODUCT index it disagrees with SQL vectorNeighbors, which walks the PQ codes and re-ranks.
  • create_vector_index and get_metadata know nothing of the new index settings rerankOversample and fusedPQ.
  • The CREATE INDEX ... METADATA statement for PQ, and the per-query rerank option of vectorNeighbors, are not documented or tested.

Plan, DSL-first: document and test the statements; make find_nearest take the same engine entry point as SQL on a PRODUCT index (findNeighbors, the call SQL makes); pass the two new settings through the metadata JSON that create_vector_index already sends; read them in get_metadata; fix the docs. find_nearest_approximate stays (PQ scores only, no beam, no re-rank) and its docs say so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions