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:
Alex Shen
2026-12-01 12:06:08 +08:00
committed by GitHub
parent bb8e83e69a
commit 08911d6378
@@ -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