docs: document streaming Blob outputs for Functions (#5307)

The Function guides still hide their `BlobWriter` guidance. LanceDB
Enterprise 1.16.0 ships the server and worker support for computed
column refresh, and the paired Python SDK `0.42.0b38` includes #5171.
Show how to register a writer-based Function with that release pair and
when to keep returning `bytes`.

Both pages were rendered locally before and after the change. The
updated HTML includes the release pair, writer annotations, and plain
SQL `SELECT` fallback.

For the release pairing, we checked that the Enterprise 1.16.0 release
commit contains the server and worker implementation and that the image
digests promoted for release match the qualified bundle. We also
compared `functions.py` and `_blob_writer.py` in the released Linux
wheel with their tagged sources. Both files matched byte for byte. [SDK
release
source](https://github.com/lancedb/lancedb/tree/v0.42.0-beta.38/python/python/lancedb)
This commit is contained in:
Xuanwo
2026-12-01 01:46:08 +08:00
committed by GitHub
parent 035acd8395
commit ca4c2ae5de
2 changed files with 9 additions and 16 deletions
+4 -8
View File
@@ -321,14 +321,11 @@ frames = db.create_table("frames", [
### Produce a blob {#produce-blobs}
{/*
Draft for the streaming Blob output release.
Use `BlobWriter` during computed column refresh to produce a Blob v2 value in
chunks. Register the Function with a Python SDK that exposes `BlobWriter`
after upgrading the LanceDB Enterprise server and Function worker images to
versions that support streaming Blob output. Keep returning `bytes` with an
explicit Blob v2 output schema on deployments without writer support.
chunks. Upgrade the server and Function worker images to LanceDB Enterprise
1.16.0 before registering the Function with the `lancedb` Python SDK
`0.42.0b38`. On deployments without writer support, return `bytes` with an
explicit Blob v2 output schema.
Import `BlobWriter` from `lancedb.functions`. In a scalar Function,
`-> BlobWriter` infers a non-nullable Blob v2 output. For a vectorized
@@ -342,7 +339,6 @@ Open a writer with `BlobWriter.open()`, pass each chunk to `write()`, and
return the sealed writer after leaving its context manager. For plain SQL
`SELECT`, use a byte-returning Function within the query's Arrow output
limits.
*/}
`extract_frame` reads one frame from a video and returns JPEG bytes. Its
explicit output schema declares a Blob v2 result. The `BlobReader` input