Docs
This commit is contained in:
parent
2c6efc55c6
commit
0b92eae75f
4 changed files with 56 additions and 1 deletions
BIN
docs/img/inspector-search.png
Normal file
BIN
docs/img/inspector-search.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 274 KiB |
54
docs/inspector.md
Normal file
54
docs/inspector.md
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
# Database Inspector
|
||||||
|
|
||||||
|
Interactive TUI for browsing your LanceDB database.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# For haiku.rag-slim
|
||||||
|
pip install 'haiku.rag-slim[inspector]'
|
||||||
|
|
||||||
|
# Already included in haiku.rag
|
||||||
|
pip install haiku.rag
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```bash
|
||||||
|
haiku-rag inspect
|
||||||
|
haiku-rag inspect --db /path/to/database.lancedb
|
||||||
|
```
|
||||||
|
|
||||||
|
## Interface
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Three panels display your data:
|
||||||
|
|
||||||
|
- **Documents** (left) - All documents in the database
|
||||||
|
- **Chunks** (top right) - Chunks for the selected document
|
||||||
|
- **Detail View** (bottom right) - Full content and metadata
|
||||||
|
|
||||||
|
## Navigation
|
||||||
|
|
||||||
|
**Keyboard:**
|
||||||
|
|
||||||
|
- `Tab` - Cycle between panels
|
||||||
|
- `↑` / `↓` - Navigate lists
|
||||||
|
- `/` - Open search modal
|
||||||
|
- `q` - Quit
|
||||||
|
|
||||||
|
**Mouse:** Click to select, scroll to view content
|
||||||
|
|
||||||
|
## Search
|
||||||
|
|
||||||
|
Press `/` to open the full-screen search modal:
|
||||||
|
|
||||||
|
- Enter your query and press `Enter` to search
|
||||||
|
- **Left panel**: Search results with relevance scores `[0.95] content preview`
|
||||||
|
- **Right panel**: Full chunk content and metadata
|
||||||
|
- Use `↑` / `↓` to navigate results - detail view updates in real-time
|
||||||
|
- Press `Enter` on a result to close search and navigate to that document/chunk
|
||||||
|
- Press `Esc` to close search without selecting
|
||||||
|
|
||||||
|
Search uses hybrid (vector + full-text) search across all chunks. Content is rendered as markdown with syntax highlighting.
|
||||||
|
|
@ -47,7 +47,7 @@ class DocumentList(VerticalScroll):
|
||||||
|
|
||||||
# Add document items
|
# Add document items
|
||||||
for doc in self.documents:
|
for doc in self.documents:
|
||||||
title = doc.title or doc.uri or doc.id or "Untitled"
|
title = doc.title or doc.uri or doc.id
|
||||||
item = ListItem(Static(f"{title}"))
|
item = ListItem(Static(f"{title}"))
|
||||||
await self.list_view.append(item)
|
await self.list_view.append(item)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@ nav:
|
||||||
- Server: server.md
|
- Server: server.md
|
||||||
- Remote processing: remote-processing.md
|
- Remote processing: remote-processing.md
|
||||||
- MCP: mcp.md
|
- MCP: mcp.md
|
||||||
|
- Inspector: inspector.md
|
||||||
- Benchmarks: benchmarks.md
|
- Benchmarks: benchmarks.md
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- admonition
|
- admonition
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue