Keysat 6c29c22601 Add NL-query backend (W2): local translator + safe named-query runner
Read-only "ask the database in plain English" backend. Translation runs on
the local Qwen via Spark Control (question -> {intent, slots}); nothing leaves
the box, no Claude and no redaction boundary (the simplification chosen after
pressure-testing). The safe surface is a curated catalog of ~12 hand-written
parameterized queries; a slot validator is the trust boundary (no generic SQL,
no dynamic identifiers). POST /api/query/nl + GET /api/query/catalog, gated
require_bot_or_admin, read-only, audited. Soft-delete-correct per table.
Local Qwen translated 12/12 real example questions correctly against the live
Spark. Web "Ask" box and Matrix bot still to come (steps 4-5).
2026-06-18 18:35:41 -05:00
2026-02-27 12:44:50 -06:00
2026-02-27 12:44:50 -06:00
2026-02-27 12:44:50 -06:00
2026-02-27 12:44:50 -06:00
2026-02-27 12:44:50 -06:00
2026-02-27 12:44:50 -06:00
S
Description
No description provided
53 MiB
Languages
Python 57.9%
HTML 34.1%
TypeScript 6.4%
Shell 0.7%
JavaScript 0.3%
Other 0.6%