Skip to content

Vector API: find_nearest filters and groups, build options, sparse index helper #382

Closed

Description

@tae898

The engine's vector index has options our Python API does not expose, all stable upstream: in vector.neighbors the where, groupBy, groupSize and maxDistance options (where is new in 26.11.1, so it needs a version gate), and in LSM_VECTOR the neighborOverflowFactor and alphaDiversityRelaxation build settings. The sparse vector index (LSM_SPARSE_VECTOR, vector.sparseNeighbors) is reachable only through SQL, and IndexType lacks LSM_SPARSE_VECTOR. Our create_vector_index defaults add_hierarchy to true while the engine defaults it to false; the docstring should say so (the benchmark records the value it uses). Plan: add these to find_nearest, create_vector_index and a small sparse helper, with tests, examples and docs in the same change.

Activity

  1. tae898 commented on Oct 21, 2026

    @tae898
    Author

    Scope narrowed to match the bindings' DSL-first design (docs/api-access-methods.md): no new wrapper API. The vector options (where, groupBy, groupSize, maxDistance, neighborOverflowFactor, alphaDiversityRelaxation) and the sparse index are documented as SQL (vector.neighbors, vector.sparseNeighbors, CREATE INDEX ... METADATA) with tests where a documented form is not covered yet, plus the add_hierarchy default note and IndexType.LSM_SPARSE_VECTOR if the enum is part of existing calls.

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