mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-26 20:44:00 +00:00
020fe6d3bdea8836563efdbbc7cafdfbde2aff70
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
0fb15fd178 |
docs: add Mastra integration guide (#5189)
## Summary Supersedes #2330 and brings the Mastra integration guide onto the current `docs/web` Mintlify documentation structure with verified LanceDB Embedded examples against the published `@mastra/lance` release. Credit to @vishesh-baghel for authoring the original LanceDB Mastra guide in #2330 and building the merged upstream Mastra storage and vector adapters in mastra-ai/mastra#3324. ### Changes - Add `docs/web/integrations/ai/mastra.mdx` covering LanceDB Embedded usage with `@mastra/lance`: - Node.js 22.13.0+ requirement and `npm install @mastra/lance @mastra/core`. - Runnable local `LanceVectorStore` quickstart (`create`, `createIndex`, `upsert`, `query`, `close`) with verified nearest-neighbor output (`lancedb 1`). - Explanation of the two-step native vector index behavior in `@mastra/lance` (first `createIndex()` initializes an empty table; calling `createIndex()` again after upserting at least 256 rows builds the native index on the `vector` column). - Pointer to `LanceStorage` noting the published three-argument `LanceStorage.create(id, name, uri)` signature and linking upstream Mastra references, without unverified cloud claims. - Register `integrations/ai/mastra` under **AI Platforms & Frameworks** in `docs/web/docs.json`. - Add the TypeScript example snippets to `docs/web-tests/ts/integrations.ts` and regenerate the corresponding exports (`TsFrameworksMastraQuickstart`, `TsFrameworksMastraNativeIndex`) in `docs/web/snippets/integrations.mdx`. ## Verification - Verified against published `@mastra/lance@1.6.1` and `@mastra/core@1.85.0` (resolving `@lancedb/lancedb@0.31.0` and `apache-arrow@18.1.0`): - Two-vector local quickstart returns `lancedb 1`. - Native `IVF_FLAT` index build after upserting 256 rows reports `vector_idx` with 256 indexed rows, 0 unindexed rows, and nearest-neighbor score `1`. - Confirmed `LanceStorage.create(id, name, uri)` succeeds with three arguments while the older two-argument call fails. |
||
|
|
47b7babc08 |
docs: bring the open-source documentation into this repository (#4122)
Move the public website pages into `docs/web` beside the SDK, with
shared navigation and executable example sources in `docs/web-tests`.
The combined website is assembled by
[lancedb/docs#355](https://github.com/lancedb/docs/pull/355), with six
Enterprise replacements from
[lancedb/sophon#7681](https://github.com/lancedb/sophon/pull/7681).
This includes Function guidance, runnable Quickstarts, regenerated
snippets, production contact/demo fixes, the legacy SQL route, and the
LeRobot redirect. LeRobot remains attributed to Geneva; all 34 Geneva
pages remain in the docs repository until Function officially launches.
Materialized-view guidance follows the full rebuild refresh introduced
by #4373: local refresh writes the complete result, has no `full`
argument, supports `source_version`, and no longer requires stable row
IDs. Deployment SQL refresh options and stable-ID setup are qualified by
version/configuration. Function input guidance distinguishes ordinary
stored columns from computed inputs supported by newer deployments.
**Validation:** independently accepted local checks include 95 Python
tests (real Enterprise excluded), eight TypeScript tests, Rust
Quickstart, snippet parity, typos, deterministic assembly, Mint
validation and links/anchors/redirects. The combined baseline retains
all 181 production routes and 17 legacy redirects. Examples ran locally
against source-built Python SDK 0.40.0b13; existing GitHub workflows do
not run `docs/web-tests`. New main at `069b2f7d` is 0.41.0b0 and adds
computed Function inputs; that SDK was not exercised by the accepted
tests. Latest prose corrections receive focused site validation.
**Merge/rollout:** merge this and #7681 before #355's combined CI, which
reads producer `main`. This is migration infrastructure: section
overlays, source-owned skills and automatic versioned paired releases
remain follow-ups. The current manual publisher is transitional. Hosted
validation, a supported SDK/Enterprise release pair and a real
Enterprise walkthrough remain pending.
Production Mintlify watches `lancedb/docs:deploy-freeze`, directory
`docs`; preserve that source through review. The separate SDK GitHub
Pages reference workflow rebuilds on main merges.
**Updated-head CI (
|