Files
lancedb/CONTRIBUTING.md
T
TaylorandBrendan Clement 9e65bd2c27 docs: use Enterprise terminology across website and SDK documentation (#4787)
Use “LanceDB Enterprise” throughout the staged website guides, SDK
reference sources, generated API pages, and user-facing SDK messages. A
separate branded “LanceDB Distributed” name adds terminology without
clarifying behavior; describe where operations run directly.

- Update `docs/web`, including the architecture diagram title and alt
text. Use Enterprise in headings, table labels, and prose; simplify
redundant product/execution-model wording and name the product only once
in the diagram alt text.
- Update Python docstrings and the Python/Java reference pages,
TypeScript comments and native declaration comments, and Rust API
documentation. Regenerate the TypeScript reference, including 24
replacements across six pages.
- Update SDK warnings/errors and existing test expectations to match,
along with contributor guidance and Vale rules. Remove the obsolete rule
distinguishing Enterprise from Distributed.
- Keep lowercase “distributed” for technical descriptions. API
identifiers, anchors, asset paths, and execution behavior are unchanged.
No branded-name exceptions are proposed.

Validation:
- Python and Node native builds succeeded; focused Python tests passed
(36 passed, 4 skipped), and focused Node tests passed (14).
- TypeDoc generation and the complete MkDocs reference build passed.
MkDocs retains an existing unresolved
`lancedb.functions.SecretReference` cross-reference.
- Rust formatting, Node lint/format, changed-file Python lint/format, 32
Vale tests, and whitespace checks passed. Repository-wide Python lint
has 48 existing findings in six untouched files.
- Combined documentation assembly passed. Mintlify validation and
link/anchor/redirect checks previously passed for both site builds; no
code snippets changed.

Companion PRs: [saved editions, terminology guide, and shared
rules](https://github.com/lancedb/docs/pull/413), [Enterprise overview
and writing rules](https://github.com/lancedb/sophon/pull/9511).

---------

Co-authored-by: Brendan Clement <brendan.clement@lancedb.com>
2026-11-02 10:25:14 -08:00

8.4 KiB

Contributing to LanceDB

LanceDB is an open-source project and we welcome contributions from the community. This document outlines the process for contributing to LanceDB.

Reporting Issues

If you encounter a bug or have a feature request, please open an issue on the GitHub issue tracker.

Picking an issue

We track issues on the GitHub issue tracker. If you are looking for something to work on, check the good first issue label. These issues are typically the best described and have the smallest scope.

If there's an issue you are interested in working on, please leave a comment on the issue. This will help us avoid duplicate work. Additionally, if you have questions about the issue, please ask them in the issue comments. We are happy to provide guidance on how to approach the issue.

Configuring Git

First, fork the repository on GitHub, then clone your fork:

git clone https://github.com/<username>/lancedb.git
cd lancedb

Then add the main repository as a remote:

git remote add upstream https://github.com/lancedb/lancedb.git
git fetch upstream

Setting up your development environment

We have development environments for Python, Typescript, and Java. Each environment has its own setup instructions.

Best practices for pull requests

For the best chance of having your pull request accepted, please follow these guidelines:

  1. Unit test all bug fixes and new features. Your code will not be merged if it doesn't have tests.
  2. If you change the public API, update the documentation in the docs directory.
  3. Aim to minimize the number of changes in each pull request. Keep to solving one problem at a time, when possible.
  4. Before marking a pull request ready-for-review, do a self review of your code. Is it clear why you are making the changes? Are the changes easy to understand?
  5. Use conventional commit messages as pull request titles. Examples:
    • New feature: feat: adding foo API
    • Bug fix: fix: issue with foo API
    • Documentation change: docs: adding foo API documentation
  6. If your pull request is a work in progress, leave the pull request as a draft. We will assume the pull request is ready for review when it is opened.
  7. When writing tests, test the error cases. Make sure they have understandable error messages.

Project structure

The core library is written in Rust. The Python, Typescript, and Java libraries are wrappers around the Rust library.

  • src/lancedb: Rust library source code
  • python: Python package source code
  • nodejs: Typescript package source code
  • node: Deprecated Typescript package source code
  • java: Java package source code
  • docs/src: SDK reference, built with mkdocs
  • docs/web: website guides for LanceDB Embedded and the APIs used by both Embedded and Enterprise
  • docs/web-tests: the tests the documentation's code examples are extracted from

Documentation

Update the docs in the same pull request as the behavior they describe. You can merge docs before a feature launches; keep the unfinished material hidden until it is ready for readers.

Choose the right place

  • docs/web/ holds website guides for LanceDB Embedded and the APIs used by both Embedded and Enterprise.
  • docs/src/ holds the SDK reference. See docs/README.md for its build and API-generation instructions.
  • docs/web-tests/ and rust/lancedb/tests/ hold tests used to generate the website's code examples.

Document SDK APIs here, and explain which operations work in Embedded and Enterprise. Put Enterprise-specific deployment and operating instructions in the Enterprise documentation.

Some pages are placeholders that the website build replaces with an Enterprise page. Changes to a placeholder won't appear on the combined site. Put instructions that both products need on a separate page and link to it.

Preview and check your change

From the repository root:

npm i -g mint@4.2.888
(cd docs/web && mint dev)

This previews this checkout, including your uncommitted changes. It doesn't include the other documentation sources or render the availability labels. Use the combined preview when checking Enterprise replacements or links to pages from another source. Staging shows saved release editions, so it won't show a new source change just because that change merged.

Follow the style guide. Vale checks wording, names and punctuation using the bundled LanceDB rules. Pull requests show suggestions on the lines they change. With Vale 3.24.0 installed, check a page locally with:

vale docs/web/indexing/vector-index.mdx

Keep existing {#anchor} values when changing headings, so links to those sections keep working. Give new headings stable anchors. For links in rendered components, write the path directly, such as href="/quickstart", and spell out attributes rather than using property spreads. That lets versioned docs keep links inside the selected edition. Code examples aren't subject to this rule.

Code examples

Edit the test that produces an example, then regenerate its snippet. The sources are docs/web-tests/{py,ts,rs}, docs/web-tests/blob-v2/{py,ts,rs} and rust/lancedb/tests. Run this from the repository root:

uv run docs/web-tests/mdx_snippets_gen.py \
  -s docs/web-tests/py -s docs/web-tests/ts -s docs/web-tests/rs \
  -s docs/web-tests/blob-v2/py -s docs/web-tests/blob-v2/ts -s docs/web-tests/blob-v2/rs \
  -s rust/lancedb/tests -o docs/web/snippets

Run the tests for the examples you changed; generating a snippet doesn't run its example. Review the generated diff and commit only the relevant snippets with their tests. Don't assume the PR checks execute every documentation example.

Say where a feature works

Use availability in a page's frontmatter to describe the support covered by that page. Each product (oss for LanceDB Embedded, enterprise for LanceDB Enterprise) is either available or unavailable; use the summary and body for setup requirements, SDK differences and unsupported operations. For example, a page about signing in to Enterprise could declare:

availability:
  oss: unavailable
  enterprise: available
  summary: >-
    These sign-in instructions apply to LanceDB Enterprise. LanceDB
    Embedded has no server to sign in to.

Check these claims with the feature owner. Don't use varies, treat an API stub as working support, or mark a supported feature unavailable just because it needs configuration. If one label can't describe the whole page accurately, make the page's scope narrower and explain the differences.

Assembly turns this declaration into a page label and, for a feature supported by only one product, a sidebar tag. Don't add those badges by hand. Availability labels do not hide unreleased content.

Write docs before launch

You don't need to hold a documentation PR until launch. Use these controls:

  • For a whole page, add its path to docs/web/.mintignore. Leave it out of docs/web/docs.json, redirects and links from published pages. Removing a sidebar entry alone doesn't hide a page.
  • For a section, wrap it in an MDX comment, {/* ... */}, with a note such as Draft for the Feature X release. Put draft table rows and list items in a comment below the table or list, not between entries.

Drafts remain in the source. Use them to avoid advertising an unfinished feature, not to keep information confidential. See Writing docs before release for examples and how to preview a draft.

Before the intended release, remove the draft controls, restore the navigation and links, and check the result. Those changes must be in the source commit the edition uses. A later change to main doesn't update an edition already saved. For a mistake in an existing edition, fix the source and request a recorded correction.

Release process

For information on the release process, see: release_process.md