skillfed

lancedb

lancedb

lancedb v0.37.1 8.2M downloads/30d#1,655 on PyPI11,149
Permissive license Active released

What it is and what it does

LanceDB is a Python client library for the Lance vector database, enabling developers to store, index, and search high-dimensional embedding data. It wraps the embedded Lance storage engine (written in Rust) and exposes a Python API for connecting to datasets, opening tables, and executing vector similarity searches with optional result limits.

The package depends on numpy, pyarrow, pydantic, and other utilities for data handling and serialization. It ships as a compiled wheel targeting modern x86_64 hardware (Haswell baseline with AVX2), but offers a separate lancedb-compat distribution for older processors that lack AVX2 support. The library is in alpha status and receives regular updates; preview releases are available for early access to new features.

Use it for:

  • Build semantic search features by indexing embeddings and querying them with vector similarity
  • Store and retrieve machine learning model outputs (embeddings) efficiently for retrieval-augmented generation
  • Prototype vector database workflows without managing a separate server process
  • Integrate vector search into data science pipelines using PyArrow-compatible data formats

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

LanceDB is a Python SDK for connecting to and querying LanceDB vector databases, supporting search operations on embedded data with filtering and result limits.

Yes, if you need embedded vector search in Python and can meet the Python 3.10+ requirement. The active maintenance, permissive license, and zero known vulnerabilities make it low-risk. Medium install friction is manageable for most modern systems; pre-Haswell x86_64 users must use lancedb-compat. Alpha status means the API may change, but frequent releases and high GitHub stars suggest a maturing project.

Install

lancedb on PyPI

pip

pip install lancedb

uv

uv add lancedb

poetry

poetry add lancedb

Installing lancedb

Before you install

Medium install friction due to compiled native wheels (Rust-based lance crate). Requires Python 3.10+. Pre-Haswell x86_64 systems need the separate lancedb-compat package to avoid illegal instruction crashes; standard wheels target x86-64-haswell. Active maintenance with releases every 2 weeks; latest release 4 days old.

License in practice

Apache 2.0 permissive license allows commercial and private use with minimal restrictions.

Quickstart

pip install lancedb

import lancedb
db = lancedb.connect('<PATH_TO_LANCEDB_DATASET>')
table = db.open_table('my_table')
results = table.search([0.1, 0.3]).limit(20).to_list()

Requires Python 3.10+. Pre-Haswell x86_64 hosts must install lancedb-compat instead to avoid illegal instruction errors; standard wheels target x86-64-haswell baseline.

Verify before relying

  • Whether the package supports remote LanceDB servers or only local file-based datasets
  • Performance characteristics and scalability limits for large vector datasets
  • Full API surface beyond basic search (filtering, aggregation, updates)

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.10)
Install friction medium — platform-specific wheel
Runtime dependencies 8 — deprecation, numpy, overrides, packaging, pyarrow, pydantic, tqdm, lance-namespace
Maintenance actively maintained — 4 days since the last release
Last repo commit
First released
Downloads 8,183,108/month — #1,655 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: lancedb-0.37.1-cp310-abi3-macosx_11_0_arm64.whl; lancedb-0.37.1-cp310-abi3-manylinux_2_28_aarch64.whl; lancedb-0.37.1-cp310-abi3-manylinux_2_28_x86_64.whl; lancedb-0.37.1-cp310-abi3-win_amd64.whl

Keywords: data-format, data-science, machine-learning, arrow, data-analytics

Development Status :: 3 - AlphaEnvironment :: ConsoleIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering

Tags

vector database python clientlance db sdkembedding search libraryvector similarity searcharrow-based data storemachine learning data retrievalsemantic search python
vector-searchembeddingsarrow-native

More Scientific/Engineering packages