diff --git a/docs/web/curation/create-function.mdx b/docs/web/curation/create-function.mdx index c898a40ae..686af25a1 100644 --- a/docs/web/curation/create-function.mdx +++ b/docs/web/curation/create-function.mdx @@ -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 diff --git a/docs/web/management/function.mdx b/docs/web/management/function.mdx index bff9b8aee..0398c2f20 100644 --- a/docs/web/management/function.mdx +++ b/docs/web/management/function.mdx @@ -653,8 +653,9 @@ For a Function that returns `bytes`, declare `output_schema=lancedb.blob(...)` to store a Blob v2 result. A bare `bytes` return annotation infers ordinary Arrow `binary`. -{/* -Draft for the streaming Blob output release. +For streaming output during computed column refresh, upgrade both the server +and Function worker images to LanceDB Enterprise 1.16.0 before registering +writer-based Functions with the `lancedb` Python SDK `0.42.0b38`. A scalar `BlobWriter` return annotation infers a non-nullable Blob v2 output. A vectorized Function with an explicit `input_schema` can infer one @@ -662,12 +663,8 @@ Blob v2 per row with `list[BlobWriter]` or `tuple[BlobWriter, ...]`. Use `BlobWriter.field(...)` to declare writer-capable fields in named or nested outputs. -Use `BlobWriter` for computed column refresh. Register writer-based Functions -after the LanceDB Enterprise server and Function worker images support -streaming Blob output, using a Python SDK that provides `BlobWriter`. Use -byte-returning Functions on earlier deployments and for plain SQL `SELECT`, -where results follow the query's Arrow output limits. -*/} +Use byte-returning Functions on earlier deployments and for plain SQL +`SELECT`, where results follow the query's Arrow output limits. See [Read and produce blobs](/curation/create-function#blobs) for a full example: extracting a frame from a stored video, chaining a second Function