System Overview
ThothAI is a multi-service Text-to-SQL platform with a Django backend, a Next.js frontend, and a FastAPI SQL Generator.
Runtime Topology
The supported Docker deployment exposes these services:
backend: Django admin and backend APIsfrontend: Next.js applicationsql-generator: FastAPI service that orchestrates retrieval, generation, and selectionproxy: public reverse proxymermaid-service: rendering support for Mermaid assetsthoth-qdrant: vector database for retrieval
Public Entry Points
http://localhost:8040: proxy entrypointhttp://localhost:8040/admin: Django adminhttp://localhost:3040: frontend direct porthttp://localhost:8020/health: SQL Generator health endpoint
Code Layout
backend/: Django application and admin-managed configurationfrontend/: Next.js UIfrontend/sql_generator/: FastAPI SQL Generator, agent management, validators, helpers, and pipeline statedocker/: build definitions for all servicesdocs/: published MkDocs sitelegacy-docs/: archived documentation not included in the public site
Architectural Boundary
The backend owns configuration and metadata persistence. The SQL Generator owns request orchestration. The frontend owns interaction flow. The vector database provides retrieval support, not authoritative configuration.