From 08911d6378c5ff142cc915b0a6edba9a43862513 Mon Sep 17 00:00:00 2001 From: Alex Shen Date: Mon, 30 Nov 2026 23:06:08 -0500 Subject: [PATCH] docs: import LanceDB in the NVIDIA example (#5320) ## Summary The first Python example in the NVIDIA Nemotron guide calls `lancedb.connect` without importing `lancedb`. Import the module so readers can run the example in a fresh Python session. ## Test plan - Ran the first fenced Python example from the guide in a fresh namespace. The original raised `NameError` at the connection call. - Reran the changed example with SDK stubs. It reached table creation, insert, and search without calling a live NVIDIA endpoint. - Checked that the diff changes only the import. AI assistance disclosure. OpenAI Codex helped prepare and verify this documentation change. --- docs/web/integrations/embedding/nvidia.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/web/integrations/embedding/nvidia.mdx b/docs/web/integrations/embedding/nvidia.mdx index 793b36edb..8965ec3ca 100644 --- a/docs/web/integrations/embedding/nvidia.mdx +++ b/docs/web/integrations/embedding/nvidia.mdx @@ -22,6 +22,7 @@ export NVIDIA_API_KEY="your-api-key" ```python Python icon="python" +import lancedb from lancedb.embeddings import get_registry from lancedb.pydantic import LanceModel, Vector