Platform Chat
Platform Chat (/chat) is a data assistant grounded on your ToraDB tables. Ask natural-language questions; the assistant calls search and SQL tools, shows citations and charts, and can produce exportable reports.
Setup
Browser LLM (local development)
- Open Settings in the platform.
- Under LLM (Chat), choose a provider preset or enter:
- API key — stored only in your browser (
localStorage), never sent to ToraDB. - Base URL — e.g.
https://api.openai.com/v1orhttp://localhost:11434/v1for Ollama. - Model — e.g.
gpt-4o-mini.
- API key — stored only in your browser (
- Click Test LLM connection, then open Chat.
Server proxy (production)
Configure the ingest/API server:toradb-ingest platform serve. In Settings, enable Use server proxy. API keys stay on the server; the browser only calls /api/chat/completions.
Vector search (optional)
Enable Embedder in Settings with an OpenAI-compatible/embeddings endpoint so Chat can use dense/hybrid retrieval on vector tables.
Example prompts
- “How many rows are in
passages?” - “Find documents about wireless power transfer.”
- “Count records by tag and show a chart.”
- “Write an executive report on the top themes in this table.”
Export
From the Chat header:- MD — Markdown report of the thread (queries, tables, citations).
- HTML — Printable single-file report.
Tools the assistant uses
| Tool | Purpose |
|---|---|
list_tables | Table names and row counts |
describe_table | Schema and samples |
search | BM25 / hybrid / strategy-based retrieval |
embed_query | Query embeddings (when embedder configured) |
run_sql | Read-only analytics SQL |
render_chart | Bar charts |
generate_report | Structured report sections |
DROP, DELETE, CREATE, etc.) are blocked in Chat.