From 27b7a248e4add7f947c8415a9f5e92d0721ca35e Mon Sep 17 00:00:00 2001 From: Brendan Clement Date: Tue, 24 Nov 2026 09:31:06 -0800 Subject: [PATCH] docs: use refresh_column_async with wait on Enterprise pages (#5183) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## The problem Several Python examples on Enterprise pages start a computed column refresh with `table.refresh_column(...)`. On a LanceDB Enterprise connection that call always fails: ``` NotImplementedError: not supported: a remote refresh runs as a server job; use refresh_column_async and wait on the returned handle ``` On Enterprise a refresh runs as a job on the server. Only `refresh_column_async(...)` works there: it returns a job, and `job.wait()` blocks until the job finishes. A reader following the quickstart's Enterprise step, or the secrets or GPU examples, hits the error. The same fix landed for the Sophon-owned page in lancedb/sophon#10478. ## What this changes - **The examples use the job form:** `job = table.refresh_column_async(...)` then `job.wait()`. This covers `curation/vend-secret.mdx`, `curation/create-function.mdx` and the quickstart, plus the sentences that named the blocking call in `enterprise/auto-refresh.mdx` and `feature-engineering/add-computed-column.mdx`. - **The quickstart example now comes from a test.** The `PyQuickstartAddFeature` snippet is generated from the deployment test in `docs/web-tests/py/test_quickstart.py`, and the separate Enterprise-only snippet is folded into it. That test also asserts that the blocking call raises an error naming `refresh_column_async`. - **The GPU example only shows arguments the Enterprise table accepts today.** `gpu_class` and `gpu_count` are dropped from `add_columns`, and `gpu_count` from the refresh call, with a one-sentence note. See "Python wrapper gap" below. ## How it was checked Every Enterprise call the changed pages show was run through the Python SDK (0.42.0b26, built from this branch) against a local stand-in for an Enterprise server that returns canned responses: - `table.refresh_column("embedding")` raises the error above and sends no request. - `job = table.refresh_column_async("embedding"); job.wait()` submits a refresh job and returns its result. - `table.refresh_column_async("embedding", gpu_class="h100", total_gpu_count=8).wait()` is accepted, and the server receives both GPU options. - The removed forms fail as expected: `gpu_count` on `refresh_column_async`, and `gpu_class` or `gpu_count` on `add_columns`, raise `TypeError: unexpected keyword argument`. Also: the committed quickstart snippet matches what the generator produces from the test, and the five changed pages render with no blocking call in a local preview. **Not run:** the quickstart deployment test itself. It needs a real Enterprise deployment and is skipped without credentials, which CI does not have. Registering a Function also needs a real deployment, so that line of the GPU example was not exercised. ## Python wrapper gap (to be fixed separately) The Python `RemoteTable.refresh_column_async` and `RemoteTable.add_columns` do not accept `gpu_count`, and `add_columns` also does not accept `gpu_class`. The Rust remote table supports these GPU placement options, so this looks like an oversight in the Python layer. This PR makes no SDK change. Once the wrapper passes them through, the GPU example can show them again. ## Risk Low. Docs and docs tests only. ## Pipeline Updates from [git push no-mistakes](https://github.com/kunchenguid/no-mistakes)
✅ **Intent** - passed ✅ No issues found.
✅ **Rebase** - passed ✅ No issues found.
✅ **Review** - passed ✅ No issues found.
⚠️ **Test** - 2 infos - ⚠️ `docs/web/curation/create-function.mdx:546` - Not confirmed live. The new example calls `table.refresh_column_async("embedding", gpu_class="h100", gpu_count=4, total_gpu_count=8)`, but `RemoteTable.refresh_column_async` in python/python/lancedb/remote/table.py (line 1280) has no `gpu_count` parameter (only `gpu_class` and `total_gpu_count`), while the abstract `Table` and `LanceTable` do. If that reading holds, the documented call raises `TypeError: unexpected keyword argument 'gpu_count'` on Enterprise. The blocking `RemoteTable.refresh_column` has the same gap, so this predates the change, but the page still shows a call that may not run. Decision needed: drop `gpu_count=4` from the example, or add the parameter to the Enterprise table (an SDK change beyond this docs change). - ⚠️ The intent asked whether the docs change can be validated by running code. In this run it could not: the SDK build did not finish in the time budget and no Enterprise deployment credentials are available, so the only test covering the changed quickstart snippet (`test_quickstart_derived_feature_on_a_deployment`) skips. The prepared driver script in the evidence directory exercises the three documented calls against a localhost emulator once the SDK is built. - ⚠️ live validation verdict: inconclusive (4 of 7 scenarios were driven live against the product); untested: On an Enterprise connection (localhost emulator, synthetic responses) the documented `job = table.refresh_column_async("embedding"); job.wait()` completes, and the old blocking `table.refresh_column(...)` raises NotImplementedError naming refresh_column_async, On an Enterprise connection the create-function.mdx example `table.refresh_column_async("embedding", gpu_class="h100", gpu_count=4, total_gpu_count=8)` is accepted and submits a job, `test_quickstart_derived_feature_on_a_deployment` passes against a real LanceDB Enterprise deployment - Live validation: ⚠️ inconclusive - 4 of 7 scenarios driven live against the product | Scenario | Result | Live | Evidence | | --- | --- | --- | --- | | Reader opens the six changed docs pages in the local Mintlify preview and sees the job form (`refresh_column_async` + `job.wait()`) with no blocking `table.refresh_column(` call left | ✅ pass | live | Rendered-page check output (artifact 'Rendered docs check') and saved HTML under ~/.no-mistakes/evidence/01M85TWQ599ZJ5NQ0DBASSFT91/rendered | | Reader follows the new `refresh_column_async` link on the computed-column page and lands on the 'Run a refresh on Enterprise' section | ✅ pass | live | Rendered add-computed-column page links to /feature-engineering/refresh-column#async; the rendered refresh-column page (HTTP 200) contains an element with id="async" | | Quickstart page still renders after the Enterprise-only snippet import was removed, and its feature step shows the job form | ✅ pass | live | quickstart returns HTTP 200; page payload contains `job = table.refresh_column_async("quality_score")\njob.wait()`; no `PyQuickstartAddFeatureEnterprise` reference remains | | Regenerating snippets from docs/web-tests/py/test_quickstart.py reproduces the committed `PyQuickstartAddFeature` snippet | ✅ pass | live | `mdx_snippets_gen.py` output in ~/.no-mistakes/evidence/01M85TWQ599ZJ5NQ0DBASSFT91/snippets-regen/quickstart.mdx is identical to docs/web/snippets/quickstart.mdx for that export | | On an Enterprise connection (localhost emulator, synthetic responses) the documented `job = table.refresh_column_async("embedding"); job.wait()` completes, and the old blocking `table.refresh_column(.… | ⏸️ untested | no | Needs the Python SDK built from this worktree. `uv run ... maturin develop` started from a cold cargo cache and was still compiling after about 18 minutes, so I stopped it to stay inside the 30-minute… | | On an Enterprise connection the create-function.mdx example `table.refresh_column_async("embedding", gpu_class="h100", gpu_count=4, total_gpu_count=8)` is accepted and submits a job | ⏸️ untested | no | Blocked by the same unfinished SDK build. The source suggests this call would raise TypeError (see finding), but that was not executed. | | `test_quickstart_derived_feature_on_a_deployment` passes against a real LanceDB Enterprise deployment | ⏸️ untested | no | The test skips unless LANCEDB_DOCS_TEST_DEPLOYMENT=1 and LANCEDB_URI, LANCEDB_HOST_OVERRIDE and LANCEDB_API_KEY point at a deployment with a Function catalog; a localhost emulator cannot stand in for… | - `cd docs/web && mint dev --port 3391 --no-open`, then `curl http://localhost:3391/<page>` for quickstart, curation/vend-secret, curation/create-function, enterprise/auto-refresh, feature-engineering/add-computed-column, feature-engineering/refresh-column (all HTTP 200), with a text check of each rendered page - `python3 docs/web-tests/mdx_snippets_gen.py -s docs/web-tests/py -s docs/web-tests/ts -s docs/web-tests/rs -o <evidence>/snippets-regen`, then diff of `PyQuickstartAddFeature` against `docs/web/snippets/quickstart.mdx` - `cd python && uv run --extra tests --extra dev maturin develop --extras tests,dev` (started, not finished within budget, stopped; no result) - `chrome-devtools-axi` screenshots of the rendered pages (failed: BRIDGE_NOT_READY) - Source read of `python/python/lancedb/remote/table.py` `refresh_column_async` signature against the create-function.mdx example (not live) 🔧 Fix applied. 2 infos still open: - ℹ️ No screenshots of the rendered docs pages were captured. `chrome-devtools-axi` failed with "Bridge failed to start within 30s" and headless Google Chrome hung until killed at 60s per page. The pages were instead fetched as served HTML from a local `mint dev` preview and saved under rendered-round2/. For the quickstart page the job-form snippet is present only in the page's hydration payload, not as rendered text, so its on-screen appearance was not seen. - ℹ️ `docs/web-tests/py/test_quickstart.py:347` - `test_quickstart_derived_feature_on_a_deployment`, the only test that runs the changed quickstart snippet end to end, skips because no Enterprise deployment credentials exist (LANCEDB_DOCS_TEST_DEPLOYMENT, LANCEDB_URI, LANCEDB_HOST_OVERRIDE, LANCEDB_API_KEY). The same calls were driven against a localhost emulator instead, which does not prove real-deployment behaviour. - Live validation: ✅ go - 7 of 9 scenarios driven live against the product | Scenario | Result | Live | Evidence | | --- | --- | --- | --- | | On an Enterprise connection (Python SDK, localhost emulator, synthetic responses) the documented `job = table.refresh_column_async("embedding"); job.wait()` submits a refresh job and returns its resul… | ✅ pass | live | driver-output-round2.txt: OK -> rows_assigned=3 ...; server received POST /v1/table/test/backfill_column {'column': 'embedding'} | | Adversarial: on the same Enterprise connection the old blocking `table.refresh_column("embedding")` fails with NotImplementedError naming refresh_column_async and sends no request | ✅ pass | live | driver-output-round2.txt: RAISED NotImplementedError: ... use refresh_column_async and wait on the returned handle; requests sent: [] | | The create-function.mdx refresh example as now written, `refresh_column_async("embedding", gpu_class="h100", total_gpu_count=8)` then `job.wait()`, is accepted on Enterprise and sends both GPU options | ✅ pass | live | driver-output-round2.txt: server received {'gpu_class': 'h100', 'total_gpu_count': 8, 'column': 'embedding'} | | The create-function.mdx `table.add_columns({"embedding": <Function binding>}, total_gpu_count=8)` is accepted on Enterprise and sends the fleet GPU ceiling | ✅ pass | live | driver-output-round2.txt: OK -> AddColumnsResult(version=2); POST /v1/table/test/add_columns/ body carries the Function binding and 'total_gpu_count': 8 | | Adversarial: the GPU arguments removed from the create-function.mdx example (`gpu_count` on refresh_column_async; `gpu_class`/`gpu_count` on add_columns) are rejected by the Enterprise table, matching… | ✅ pass | live | driver-output-round2.txt: TypeError unexpected keyword argument 'gpu_count' (refresh_column_async) and 'gpu_class' (add_columns) | | The committed `PyQuickstartAddFeature` snippet equals what the snippet generator produces from docs/web-tests/py/test_quickstart.py | ✅ pass | live | `mdx_snippets_gen.py` output in snippets-regen-round2; `diff -r` against docs/web/snippets reports no difference for quickstart.mdx | | A reader opening the five changed pages in a local Mintlify preview sees the job form and no blocking `table.refresh_column(` call | ✅ pass | live | rendered-round2-counts.txt and rendered-round2/*.html: all five pages return 200 with zero blocking calls; job form present on each | | `test_quickstart_derived_feature_on_a_deployment` passes against a real LanceDB Enterprise deployment | ⏸️ untested | no | Ran the test; it skips because no Enterprise deployment credentials exist here. A localhost emulator cannot stand in: the test registers a Function over Flight SQL and computes real values. To run it,… | | `version = db.create_function(embed)` from the create-function.mdx example registers a Function on Enterprise | ⏸️ untested | no | Tried it against the emulator; the call goes over Flight SQL to a Function catalog, which only a real Enterprise deployment provides. This line is unchanged by the diff. Needs the same deployment cred… | - `~/.treehouse/lancedb-9ea8c9/1/lancedb/python/.venv/bin/python drive_enterprise_refresh_v3.py` (lancedb 0.42.0b26 built at cb082c08, whose SDK source is identical to this head; Enterprise connection to a localhost emulator with synthetic responses) - `python docs/web-tests/mdx_snippets_gen.py -s docs/web-tests/py -s docs/web-tests/ts -s docs/web-tests/rs -o <evidence>/snippets-regen-round2` then `diff -r` against `docs/web/snippets` (quickstart.mdx identical) - `cd docs/web-tests/py && python -m pytest test_quickstart.py -q -rs` (4 passed, 6 skipped; all skips are deployment-only tests) - `mint dev --port 3397` in docs/web, then `curl` of /quickstart, /curation/vend-secret, /curation/create-function, /enterprise/auto-refresh, /feature-engineering/add-computed-column (all 200) and a count of blocking vs job-form calls in the served HTML - `git status --short` after teardown (clean; preview stopped, port 3397 free)
✅ **Document** - passed ✅ No issues found.
⚠️ **Lint** - 1 info - ℹ️ `docs/web-tests/py/test_quickstart.py:29` - `ruff check` reports C408 (`dict()` call, rewrite as a literal) in the `deployment` fixture. It is on a line this change did not touch and is also present at the base commit; ruff's only fix for it is marked unsafe, so I left it. `ruff format --check` passes. ruff is not on PATH, so I ran it through `uvx`, which may not be the repo-pinned version.
✅ **Push** - passed ✅ No issues found.
--- docs/web-tests/py/test_quickstart.py | 44 ++++--------------- docs/web/curation/create-function.mdx | 12 +++-- docs/web/curation/vend-secret.mdx | 5 ++- docs/web/enterprise/auto-refresh.mdx | 2 +- .../add-computed-column.mdx | 2 +- docs/web/quickstart.mdx | 14 +++--- docs/web/snippets/quickstart.mdx | 4 +- 7 files changed, 27 insertions(+), 56 deletions(-) diff --git a/docs/web-tests/py/test_quickstart.py b/docs/web-tests/py/test_quickstart.py index ac8396db0..60d8852ec 100644 --- a/docs/web-tests/py/test_quickstart.py +++ b/docs/web-tests/py/test_quickstart.py @@ -344,10 +344,11 @@ def flatten_stats(table): # --8<-- [end:quickstart_flatten_stats] -def test_quickstart_derived_feature(db_path_factory): - db = lancedb.connect(db_path_factory("derived_feature")) - table = create_frames(db) +def test_quickstart_derived_feature_on_a_deployment(deployment): + # Functions need LanceDB Enterprise: LanceDB Embedded has no Function catalog. + table = create_frames(deployment) flatten_stats(table) + db = deployment.db # --8<-- [start:quickstart_add_feature] from lancedb import col, function @@ -369,7 +370,8 @@ def test_quickstart_derived_feature(db_path_factory): ) } ) - table.refresh_column("quality_score") + job = table.refresh_column_async("quality_score") + job.wait() # --8<-- [end:quickstart_add_feature] # --8<-- [start:quickstart_query_feature] @@ -379,38 +381,8 @@ def test_quickstart_derived_feature(db_path_factory): print(features) # --8<-- [end:quickstart_query_feature] assert quality_scores(table) == EXPECTED_QUALITY_SCORES - - -def test_quickstart_derived_feature_on_a_deployment(deployment): - table = create_frames(deployment) - flatten_stats(table) - - from lancedb import col, function - - @function - def quality_score( - motion: float, sharpness: float, exposure: float, framing: float - ) -> float: - return (motion + sharpness + exposure + framing) / 4.0 - - version = deployment.db.create_function_async(quality_score).wait() - table.add_columns( - { - "quality_score": version( - motion=col("motion"), - sharpness=col("sharpness"), - exposure=col("exposure"), - framing=col("framing"), - ) - } - ) - - # --8<-- [start:quickstart_add_feature_enterprise] - job = table.refresh_column_async("quality_score") - job.wait() - # --8<-- [end:quickstart_add_feature_enterprise] - assert quality_scores(table) == EXPECTED_QUALITY_SCORES - with pytest.raises(Exception): + # The blocking form raises on Enterprise, which is why the snippet uses a job. + with pytest.raises(NotImplementedError, match="refresh_column_async"): table.refresh_column("quality_score") diff --git a/docs/web/curation/create-function.mdx b/docs/web/curation/create-function.mdx index 01669901c..c898a40ae 100644 --- a/docs/web/curation/create-function.mdx +++ b/docs/web/curation/create-function.mdx @@ -553,11 +553,12 @@ def embed(text: str) -> list[float]: ... version = db.create_function(embed) table.add_columns( {"embedding": version(text=col("text"))}, - gpu_class="any", - gpu_count=1, total_gpu_count=8, ) -table.refresh_column("embedding", gpu_class="h100", gpu_count=4, total_gpu_count=8) +job = table.refresh_column_async( + "embedding", gpu_class="h100", total_gpu_count=8 +) +job.wait() db.create_materialized_view( "embeddings", query="SELECT embed(text) AS embedding FROM documents", @@ -570,7 +571,10 @@ db.create_materialized_view( `gpu_class` selects the GPU pool and `gpu_count` selects the positive number of devices allocated together to each worker. Both can be overridden at -column/MV creation and refresh. An explicit `gpu_class="any"` replaces a +column/MV creation and refresh. On LanceDB Enterprise, the Python +`add_columns` does not yet accept `gpu_class` or `gpu_count`, and +`refresh_column_async` does not yet accept `gpu_count`; those values come from +the registered Function. An explicit `gpu_class="any"` replaces a registered class with any eligible configured pool. These settings require a GPU Function for computed columns. The `total_*` values are ceilings for the whole worker fleet. CPU and memory can limit the fleet before it reaches its GPU ceiling. diff --git a/docs/web/curation/vend-secret.mdx b/docs/web/curation/vend-secret.mdx index 7d272c265..d78447154 100644 --- a/docs/web/curation/vend-secret.mdx +++ b/docs/web/curation/vend-secret.mdx @@ -106,7 +106,8 @@ table.add_columns( ) } ) -table.refresh_column("embedding") +job = table.refresh_column_async("embedding") +job.wait() ``` A decorated class calls `__init__` once per remote instance and `__call__` @@ -135,7 +136,7 @@ cached in the Function's definition: | Step | What happens | | --- | --- | | `add_columns` with this Function version | Every bound Secret must now exist. The column pins this exact version, not a value. | -| A refresh starts -- `refresh_column`, or a materialized view's refresh | Every bound Secret must still exist, checked before any row is computed. | +| A refresh starts: `refresh_column_async`, or a materialized view's refresh | Every bound Secret must still exist, checked before any row is computed. | | The job captures each bound Secret's current value | LanceDB looks up the value once, when the job starts, and sets it as that environment variable for every row the job evaluates, including its retries. No other environment variable carries over. | This is why rotating a Secret needs no new Function version and no column diff --git a/docs/web/enterprise/auto-refresh.mdx b/docs/web/enterprise/auto-refresh.mdx index 452d543e8..f9f313c56 100644 --- a/docs/web/enterprise/auto-refresh.mdx +++ b/docs/web/enterprise/auto-refresh.mdx @@ -11,7 +11,7 @@ availability: Both a [computed column](/feature-engineering/add-computed-column) and a [materialized view](/feature-engineering/materialized-views) can refresh themselves on a schedule instead of waiting for an explicit -`refresh_column()`, `view.refresh()`, or `REFRESH` statement. Either way, +`refresh_column_async()`, `view.refresh()`, or `REFRESH` statement. Either way, `auto_refresh_enabled` turns it on and `auto_refresh_interval_seconds` sets a minimum delay before the next automatic refresh is eligible -- omit the interval to let the server decide. What that delay is measured from differs diff --git a/docs/web/feature-engineering/add-computed-column.mdx b/docs/web/feature-engineering/add-computed-column.mdx index 730d0081e..76e5e03f1 100644 --- a/docs/web/feature-engineering/add-computed-column.mdx +++ b/docs/web/feature-engineering/add-computed-column.mdx @@ -183,7 +183,7 @@ large enough that you would rather control when the work happens. Automatic refresh is on by default for each computed column, and takes effect when your Enterprise deployment enables its refresh scheduler. Until then, -call [`refresh_column`](/feature-engineering/refresh-column) yourself. Pass +call [`refresh_column_async`](/feature-engineering/refresh-column#async) yourself. Pass `auto_refresh_enabled=False` to opt a column out, or `auto_refresh_interval_seconds` to set how often it refreshes: diff --git a/docs/web/quickstart.mdx b/docs/web/quickstart.mdx index c01686c2c..22fd4bd9d 100644 --- a/docs/web/quickstart.mdx +++ b/docs/web/quickstart.mdx @@ -5,7 +5,7 @@ description: "Install LanceDB, create a table, and run your first vector search. icon: rocket --- import { PyConnect, TsConnect, RsConnect, PyConnectObjectStorage, TsConnectObjectStorage, RsConnectObjectStorage, PyConnectEnterprisePlaceholders, TsConnectEnterprisePlaceholders, RsConnectEnterprisePlaceholders } from '/snippets/connection.mdx'; -import { PyQuickstartData, PyQuickstartCreateTable, PyQuickstartAddData, PyQuickstartCurateSample, PyQuickstartCurateDedupeSetup, PyQuickstartCurateDedupe, PyQuickstartCurateDedupeQuery, PyQuickstartFlattenStats, PyQuickstartAddFeature, PyQuickstartAddFeatureEnterprise, PyQuickstartMultimodalBytes, PyQuickstartTraining, TsQuickstartData, TsQuickstartCreateTable, TsQuickstartAddData, TsQuickstartVectorSearch1, TsQuickstartMultimodalBytes, RsQuickstartDefineStruct, RsQuickstartData, RsQuickstartCreateTable, RsQuickstartAddData, RsQuickstartVectorSearch1, RsQuickstartMultimodalBytes } from '/snippets/quickstart.mdx'; +import { PyQuickstartData, PyQuickstartCreateTable, PyQuickstartAddData, PyQuickstartCurateSample, PyQuickstartCurateDedupeSetup, PyQuickstartCurateDedupe, PyQuickstartCurateDedupeQuery, PyQuickstartFlattenStats, PyQuickstartAddFeature, PyQuickstartMultimodalBytes, PyQuickstartTraining, TsQuickstartData, TsQuickstartCreateTable, TsQuickstartAddData, TsQuickstartVectorSearch1, TsQuickstartMultimodalBytes, RsQuickstartDefineStruct, RsQuickstartData, RsQuickstartCreateTable, RsQuickstartAddData, RsQuickstartVectorSearch1, RsQuickstartMultimodalBytes } from '/snippets/quickstart.mdx'; This quickstart walks you through creating a table, searching your data, and preparing it for training. By default, it uses LanceDB Embedded with a local database, so no account or API key is required. @@ -324,7 +324,9 @@ Enterprise feature. If you're using LanceDB Embedded, skip ahead to Register a UDF as a Function, then call it to fill a column computed from -those flattened fields. This fills every existing row once, immediately: +those flattened fields. On LanceDB Enterprise a refresh runs as a server job: +`refresh_column_async` starts it and returns a job handle, and `wait()` blocks +until every existing row is filled: @@ -340,13 +342,7 @@ Read it back like any other column: -`refresh_column` fills only rows added since the last refresh and recomputes rows whose inputs changed, leaving unchanged rows alone. Run the same refresh as a background job instead, so it doesn't block: - - - - {PyQuickstartAddFeatureEnterprise} - - +Run the same refresh again after adding rows. It fills only rows added since the last refresh and recomputes rows whose inputs changed, leaving unchanged rows alone. To keep working while it runs, call `wait()` later, when you need the column filled. See [Create a Function](/curation/create-function) for UDFs that call external models or services, and [Computed columns](/feature-engineering/add-computed-column) diff --git a/docs/web/snippets/quickstart.mdx b/docs/web/snippets/quickstart.mdx index a8b638085..15e999dbd 100644 --- a/docs/web/snippets/quickstart.mdx +++ b/docs/web/snippets/quickstart.mdx @@ -2,9 +2,7 @@ export const PyQuickstartAddData = "table.add(\n [\n {\n \"frame_id\": \"4\",\n \"video_id\": \"clip-2\",\n \"caption\": \"a gripper lowering a cup onto the table\",\n \"stats\": {\"motion\": 5, \"sharpness\": 4, \"exposure\": 4, \"framing\": 2},\n \"embedding\": [0.3, 0.9, 0.6, 0.8],\n }\n ]\n)\n"; -export const PyQuickstartAddFeature = "from lancedb import col, function\n\n@function\ndef quality_score(\n motion: float, sharpness: float, exposure: float, framing: float\n) -> float:\n return (motion + sharpness + exposure + framing) / 4.0\n\nversion = db.create_function_async(quality_score).wait()\ntable.add_columns(\n {\n \"quality_score\": version(\n motion=col(\"motion\"),\n sharpness=col(\"sharpness\"),\n exposure=col(\"exposure\"),\n framing=col(\"framing\"),\n )\n }\n)\ntable.refresh_column(\"quality_score\")\n"; - -export const PyQuickstartAddFeatureEnterprise = "job = table.refresh_column_async(\"quality_score\")\njob.wait()\n"; +export const PyQuickstartAddFeature = "from lancedb import col, function\n\n@function\ndef quality_score(\n motion: float, sharpness: float, exposure: float, framing: float\n) -> float:\n return (motion + sharpness + exposure + framing) / 4.0\n\nversion = db.create_function_async(quality_score).wait()\ntable.add_columns(\n {\n \"quality_score\": version(\n motion=col(\"motion\"),\n sharpness=col(\"sharpness\"),\n exposure=col(\"exposure\"),\n framing=col(\"framing\"),\n )\n }\n)\njob = table.refresh_column_async(\"quality_score\")\njob.wait()\n"; export const PyQuickstartCreateTable = "table = db.create_table(\"frames\", data=data, mode=\"overwrite\")\n";