Commit 791be74
committed
feat: Add natural language analytics dashboard with text-to-SQL
Add an analytics feature where property owners can ask questions about
their booking data in natural language. The system uses an LLM to
generate SQL queries that are executed against a SQLite database.
New files:
- src/routes/analytics.ts - Analytics endpoint with LLM-based SQL generation
- src/scripts/init-analytics-db.ts - Database initialization script
Dependencies:
- better-sqlite3 for SQLite database access1 parent 96fd2f4 commit 791be74
6 files changed
Lines changed: 631 additions & 0 deletions
File tree
- src
- routes
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
0 commit comments