Interactive shell for exploring LanceDB databases — like psql, but for vector stores.
npm install -g @phdthu26/lanceviewlanceview ./path/to/lancedb # open a specific directory
lanceview . # auto-detect if current directory is a LanceDBIf the database has only one table, lanceview connects to it automatically.
| Command | Description |
|---|---|
.open <path> |
Open a different LanceDB directory without restarting |
.tables |
List all tables with row counts |
.use <table> |
Switch active table |
.schema [table] |
Show columns, Arrow types, and classes (text / vector / integer / …) |
.count [filter] |
Count rows; optional SQL WHERE filter |
.head [n] |
First n rows, default 20 (vector columns hidden) |
.show <filter> |
One matching row in full vertical format, including vector previews |
.cols <c1,c2,...> |
Pin visible columns for this session; * to reset |
.limit <n> |
Change default row limit for this session |
.help |
Print all commands |
.exit / .quit |
Exit |
SELECT * WHERE category = 'news'
SELECT id, title, author WHERE category = 'news' LIMIT 5
SELECT id, title LIMIT 10No FROM needed — queries run against the active table.
Bare input (no leading .) is treated as a SQL WHERE filter:
category = 'news'
category = 'news' LIMIT 5
category = 'news' | id, title, authorThe | col1, col2 suffix selects columns inline for that query only, without changing your session .cols setting.
status = 'active'
score > 0.9
created_at > '2024-01-01'
type IN ('article', 'blog')
type = 'article' AND author LIKE '%example.com%'- Tab completion — dot commands, table names, and column names all complete with Tab
- Vector columns are hidden in
.headby default; use.schemato find their names .showis best for single-record inspection — full content, no truncation- Ctrl+C exits the shell
MIT