Files
lancedb/docs/web-tests/blob-v2
Xuanwo 9f58d8aab6 docs: add an ordinary Blob v2 photo tutorial (#5087)
The quickstart links to a Blob example that assumes both tables already
exist. Replace that gap with a from-empty photo tutorial: generate real
PNG files with the standard library, ingest an ordinary Blob v2 table,
filter metadata, save and compare exact image bytes, then create and
verify a filtered destination through Enterprise SQL or an Embedded
materialized copy.

Keep Early access and distinguish Enterprise 1.12.0 row-ID fetches from
deployment-dependent snapshot-bound reads. Cover source stability, range
reads and Function readers for large media, ambiguous write recovery,
and the absence of a SQL constructor for uploading client-side files.

The executable Embedded workflow passed on Python SDK 0.42.0b17 using
disposable local storage. Generated snippets, MDX compilation,
combined-site `mint validate`, and `mint broken-links --check-anchors
--check-redirects` passed. Enterprise connection/SQL examples were
checked against the public API and existing 1.12 documentation but were
not executed against an Enterprise deployment; this does not establish
SQL copy behavior after source cleanup. No saved editions or publication
state change.

Fixes
[OSS-3102](https://linear.app/lancedb/issue/OSS-3102/walk-users-from-image-files-to-a-filtered-blob-v2-table-copy).
2026-11-18 17:19:02 +08:00
..

Blob v2 documentation tests

docs/web-tests/ts pins @lancedb/lancedb 0.31.0 and docs/web-tests/rs pins lancedb 0.31.0. Those releases do not include blob(). Run the Blob v2 examples here.

Python

lancedb==0.41.0b10 from the LanceDB package index, without pylance. PyPI lancedb 0.40.0 does not provide lancedb.blob().

python3.13 -m venv .venv
.venv/bin/pip install -r docs/web-tests/blob-v2/py/requirements.txt
.venv/bin/python -m pytest docs/web-tests/blob-v2/py/test_multimodal.py

test_blob_pylance.py checks custom thresholds and to_pandas() in lazy and bytes mode. Those calls import pylance. Use a second virtualenv. test_multimodal.py fails if lance can be imported. Snippets from this file are written to docs/web/snippets/blob_pylance.mdx.

This install is for the optional tests only. The public guide does not tell users to bypass the dependency resolver. PyPI pylance 13.0.0 requires lance-namespace<0.12, and lancedb==0.41.0b10 requires lance-namespace>=0.13, so lancedb[pylance] does not resolve. The three tests passed with pylance installed after the base requirements, without its own dependency pin.

python3.13 -m venv .venv-pylance
.venv-pylance/bin/pip install -r docs/web-tests/blob-v2/py/requirements.txt
.venv-pylance/bin/pip install --no-deps pylance==13.0.0
.venv-pylance/bin/python -m pytest docs/web-tests/blob-v2/py/test_blob_pylance.py

TypeScript

@lancedb/lancedb@0.41.0-beta.8. Node.js 22.6 or newer. npm test passes --experimental-strip-types, which Node added in 22.6.0.

cd docs/web-tests/blob-v2/ts
npm ci
npm test

Rust

crates.io lancedb 0.40.0 does not include blob(). This example builds the workspace crate, lancedb 0.41.0-beta.10. Pass --features remote so this checkout compiles. The example uses a local database. The Rust workflow runs this example. It is not a default feature, so a workspace build without remote does not turn that feature on for the rest of the workspace.

cargo run -p lancedb-blob-v2-docs --features remote --example multimodal

CI

Python and TypeScript above install preview packages. Pre-release builds are not guaranteed to stay available for more than 6 months, so those runs are not required PR checks. Run them when the guide's pins change. The Rust example is the in-repo check.

Regenerate snippets from the repository root:

python3 docs/web-tests/mdx_snippets_gen.py \
  -s docs/web-tests/py -s docs/web-tests/ts -s docs/web-tests/rs \
  -s docs/web-tests/blob-v2/py -s docs/web-tests/blob-v2/ts -s docs/web-tests/blob-v2/rs \
  -o docs/web/snippets