Skip to content

feat(index): expose vector index handle readers#7440

Open
summaryzb wants to merge 1 commit into
lance-format:mainfrom
summaryzb:expose_ivf_pq
Open

feat(index): expose vector index handle readers#7440
summaryzb wants to merge 1 commit into
lance-format:mainfrom
summaryzb:expose_ivf_pq

Conversation

@summaryzb

@summaryzb summaryzb commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Purpose

Enable incremental vector index creation to reuse existing IVF centroids and PQ codebooks, avoiding repeated IVF and PQ training when extending an existing vector index.
Fix #7319

Summary

Add LogicalVectorIndex and VectorIndexHandle APIs for reading IVF centroids and PQ codebooks from named vector indices, including validation and error context for unsupported index layouts.
Expose the handle-based readers through Python and Java bindings, with typed Java result models and Python stubs.

Add LogicalVectorIndex and VectorIndexHandle APIs for reading IVF centroids and PQ codebooks from named vector indices, including validation and error context for unsupported index layouts.

Expose the handle-based readers through Python and Java bindings, with typed Java result models and Python stubs.

Cover the readers with Python and Java vector-index tests.

Change-Id: I89003cbb4038039613099af8b17ab10ad9535e77
@github-actions github-actions Bot added A-python Python bindings A-java Java bindings + JNI enhancement New feature or request labels Jun 24, 2026
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.38554% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
rust/lance/src/index.rs 96.39% 5 Missing and 3 partials ⚠️
rust/lance/src/index/vector.rs 96.29% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

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

Labels

A-java Java bindings + JNI A-python Python bindings enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFC: Expose IVF Centroids and PQ Codebook as Public Reader APIs

1 participant