# LanceDB

LanceDB is a retrieval option for building AI agents. Embedded multimodal store backed by the Lance columnar format.

## Facts

- Layer: Retrieval (What it knows)
- Vendor: LanceDB (github.com/lancedb/lancedb)
- Licence: open source
- Pricing: open source
- Self-hostable: yes
- SDKs: py, ts
- Install: `pip install lancedb`
- Docs: https://lancedb.com/
- Last verified: 2026-08-21

## When to reach for it

- You are choosing a retrieval component — what it knows.
- You need to run it on your own infrastructure, or your procurement process requires source access.
- You want to start without a commercial conversation.

## Alternatives in the retrieval layer

| Option | What it does | Licence | Self-host |
| --- | --- | --- | --- |
| pgvector | Vector search inside the Postgres you already run. | open source | yes |
| Qdrant | Rust vector database with strong payload filtering, self-host or cloud. | open source | yes |
| Pinecone | Fully managed vector database. No index to operate. | proprietary | no |
| Chroma | Embedded vector store that runs in-process. Ideal first index. | open source | yes |
| turbopuffer | Vector and full-text search on object storage — very cheap at rest. | proprietary | no |

Head to head:

- https://newagent.build/compare/lancedb-vs-pgvector
- https://newagent.build/compare/lancedb-vs-qdrant
- https://newagent.build/compare/lancedb-vs-pinecone
- https://newagent.build/compare/lancedb-vs-chroma
- https://newagent.build/compare/lancedb-vs-turbopuffer

## Curated stacks using it

- Research analyst: Reads the whole internet, writes something with citations, runs code to check itself.

## Add it to a stack

```bash
curl -fsSL "https://newagent.build/api/stack?retrieval=lancedb&format=sh" | sh
```

## Machine interfaces

- `GET https://newagent.build/api/registry` — every component as JSON
- `GET https://newagent.build/api/vendors` — vendors, with the repo and releases feed to watch
- `GET https://newagent.build/api/advise?q=<plain english>` — recommended stack for a description
- `GET https://newagent.build/api/stack?<layer>=<id>&format=sh|json|md|yml|agents|env` — a stack as files
- `GET https://newagent.build/llms.txt` — the whole registry in one fetch

Any page here also returns markdown if you send `Accept: text/markdown`.