mirror of
https://github.com/lancedb/lancedb.git
synced 2026-12-03 07:45:17 +00:00
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.
This commit is contained in:
@@ -22,6 +22,7 @@ export NVIDIA_API_KEY="your-api-key"
|
||||
|
||||
<CodeGroup>
|
||||
```python Python icon="python"
|
||||
import lancedb
|
||||
from lancedb.embeddings import get_registry
|
||||
from lancedb.pydantic import LanceModel, Vector
|
||||
|
||||
|
||||
Reference in New Issue
Block a user