Skip to content

Bump all SDK versions to latest and update vector search page#251

Merged
prrao87 merged 5 commits into
mainfrom
mintlify/129b42b9
May 29, 2026
Merged

Bump all SDK versions to latest and update vector search page#251
prrao87 merged 5 commits into
mainfrom
mintlify/129b42b9

Conversation

@mintlify

@mintlify mintlify Bot commented May 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Document the new behavior where LanceDB automatically discovers a single vector column nested inside a struct when running searches or creating an index.

Changes

  • Added a "Selecting the vector column" section to the Vector Search guide that explains automatic discovery, the dot-notation field path (with backtick escaping), how dimension matching disambiguates multiple candidates, and what the error messages mean.
  • Linked from the Vector Index page so the index-creation example points readers at the same syntax.

Context

Follows the upstream change that recurses into struct fields when resolving the default vector column, so users with a single nested vector leaf no longer need to pass an explicit field path.

Additional Updates

This PR also makes the vector search documentation fully testable: every code example on the page is now generated from the language test suites (Python, TypeScript, Rust) instead of being hardcoded, so examples are compiled/executed in CI and stay in sync with the SDKs. Also bumps the TypeScript and Rust SDKs to the latest release and migrates the example suite to the new APIs.

Key updates

  • Snippet-ified the vector search page across Python, TS, and Rust — distance metric, nested vector-column selection & indexing, exact-vs-approximate distances, pre/post-filtering, batch, distance-range, binary (hamming), brute-force, bypass-index, and fast search.
  • Python & TypeScript test coverage added for all of the above. Expensive steps (Hugging Face dataset loads) are mocked so the suite stays fast and offline.
  • New Rust example covering the search variants the Rust SDK supports, including batch (multi-query) and binary/hamming.
  • SDK upgrade to latest (0.30.0) for TypeScript and Rust, with the required migration: wrapping record-batch readers for table creation, the relocated namespace request types, and the newer Arrow version.
  • Removed hardcoded connections from the vector search snippets — they now assume the caller already has an open connection.

Testing

  • Python vector-search tests pass; TypeScript (jest) suite passes; all registered Rust examples build and run.
  • Verified the rendered page has no raw code blocks left and all snippet references resolve.

Notes

  • Late-interaction multivector search stays Python/TypeScript only — the Rust SDK doesn't yet expose a single-matrix query API.

@mintlify

mintlify Bot commented May 21, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lancedb-bcbb4faf 🟢 Ready View Preview May 21, 2026, 9:51 AM

@prrao87 prrao87 changed the title docs: document nested vector column discovery for search Bump all SDK versions to latest and update vector search page May 29, 2026
prrao87 and others added 2 commits May 29, 2026 17:33
…and Rust

Replace the hardcoded code blocks on the vector search page with snippets
generated from the language test suites, so every example shown is actually
compiled/executed and stays in sync with the SDKs.

- Add Python and TypeScript test coverage for the full set of vector search
  operations: distance-metric configuration, nested vector-column selection
  and indexing, exact-vs-approximate distances, pre- and post-filtering,
  batch search, distance-range search, binary (hamming) search, brute-force
  search, bypassing the index, and fast search. Expensive steps such as
  Hugging Face dataset loads are mocked so the suite stays fast and offline.
- Add a Rust example covering the search variants the Rust SDK supports,
  including batch (multi-query) and binary/hamming search.
- Upgrade the TypeScript and Rust SDKs to the latest release and migrate the
  example suite to the new APIs: wrapping record-batch readers for table
  creation, the relocated namespace request types, and the newer Arrow
  version.
- Drop connection setup from the vector search snippets; they now assume the
  caller already has an open connection rather than hardcoding one.

Note: late-interaction multivector search stays Python/TypeScript only, since
the Rust SDK does not yet expose a single-matrix query API.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
…/129b42b9

# Conflicts:
#	docs/search/vector-search.mdx
@prrao87
prrao87 merged commit a5448bf into main May 29, 2026
2 checks passed
@prrao87
prrao87 deleted the mintlify/129b42b9 branch May 29, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant