Lancedb

From mkurman/zorai · View interactive version

Lancedb is an AI agent skill from the GitHub repository mkurman/zorai. LanceDB — serverless vector database for AI. Columnar storage on Lance format, zero-copy access, multimodal search (text + images + audio), and direct DataFrame integration. No separate server.

How to use this skill

Skill file

Overview

LanceDB is a developer-friendly, serverless vector database built on the Lance columnar format. It supports multimodal search (text, image, audio embeddings), hybrid search, and efficient streaming ingestion without a separate server process.

Installation

uv pip install lancedb

Create and Query

import lancedb
import numpy as np

db = lancedb.connect("./my_lancedb")
table = db.create_table("vectors", [
    {"vector": np.random.rand(128), "text": "hello world"},
    {"vector": np.random.rand(128), "text": "goodbye moon"},
])

results = table.search(np.random.rand(128)).limit(5).to_list()
print([r["text"] for r in results])

Open-Clip Embeddings

import lancedb
from lancedb.embeddings import with_open_clip

@with_open_clip
class Images:
    image: str
    vector: list

table = db.create_table("images", schema=Images)
table.add([{"image": "photo.jpg"}, {"image": "diagram.png"}])
results = table.search("sunset landscape").limit(3).to_pandas()

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.