Overview of pgAdmin LLM Architecture
masterThe LLM integration is structured into several layers:
- Abstraction Layer:
client.pyprovides a unified interface for different LLM providers. - Report Generation System (
reports/):generator.py: Core logic for generating reports.security.py: Prompts and logic for security analysis.performance.py: Prompts and logic for performance analysis.design.py: Prompts and logic for design reviews.
- API Layer:
views.pycontains Flask endpoints for managing reports and chat. - UI Layer:
static/js/AIReport.jsxis the React component used to display reports with dark mode support.