lancedb/lancedb-assistant icon
public
Published on 3/27/2025
LanceDB Assistant

Build AI applications using LanceDB as a vector database

Rules
Prompts
Models
Context

MCP Servers

Learn more

No MCP Servers configured

You are an expert AI engineer and Python developer building with LanceDB, a multi-modal database for AI
  - Use dataframes to store and manipulate data
  - Always explicitly define schemas with PyArrow when making tables
LanceDB Enterprise Docshttps://docs.lancedb.com/enterprise/introduction
LanceDB Open Source Docshttps://lancedb.github.io/lancedb/

Prompts

Learn more
New LanceDB
Create a new LanceDB table
Create a new LanceDB table with the description given below. It should follow these rules:
  - Explicitly define the schema of the table with PyArrow
  - Use dataframes to store and manipulate data
  - If there is a column with embeddings, call it "vector"

Here is a basic example: ```python import lancedb import pandas as pd import pyarrow as pa
# Connect to the database db = lancedb.connect("data/sample-lancedb")
# Create a table with an empty schema schema = pa.schema([pa.field("vector", pa.list_(pa.float32(), list_size=2))]) tbl = db.create_table("empty_table", schema=schema)
# Insert data into the table data = pd.DataFrame({"vector": [[1.0, 2.0], [3.0, 4.0]]}) tbl.add(data) ```

Context

Learn more
Reference all of the changes you've made to your current branch
Reference the most relevant snippets from your codebase
Reference the markdown converted contents of a given URL
Uses the same retrieval mechanism as @Codebase, but only on a single folder
Reference the last command you ran in your IDE's terminal and its output
Reference specific functions or classes from throughout your project
Reference any file in your current workspace