Skip to content

Extend batch vector queries to ANN and indexed search #6822

Description

@BubbleCal

Parent: #6820
Depends on: #6821
Linear: https://linear.app/lancedb/issue/OSS-924/extend-batch-vector-queries-to-ann-and-indexed-search
Linear parent: https://linear.app/lancedb/issue/OSS-922/vector-search-performance-optimization-roadmap

Goal

Extend batch query support beyond flat KNN so indexed vector search can handle multiple query vectors in one request without falling back to repeated single-query planning.

Scope

  • Define how batch query execution should flow through IVF/PQ/RQ/HNSW-style indexed paths.
  • Preserve per-query top-k semantics and result grouping.
  • Avoid rebuilding or re-reading per-query state when index-level state can be shared across the batch.
  • Decide whether every index type must support batch query immediately or whether unsupported index types should explicitly fall back / error.
  • Keep recall behavior equivalent to repeated single-query execution for the same parameters.

Acceptance criteria

  • Indexed batch query tests compare against repeated single-query indexed search for at least one IVF-based index.
  • Query planning does not silently disable the index solely because query_count > 1.
  • Benchmarks report latency and QPS for repeated single-query indexed search versus indexed batch search.
  • Unsupported index types have explicit behavior and tests.

Activity

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

Metadata

Metadata

Assignees

Labels

A-indexVector index, linalg, tokenizerenhancementNew feature or requestperformancerustRust related tasks

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions