How maniteja-godugu/ai-text-analyzer works
ai-text-analyzer is a FastAPI text-analysis service. A client submits text, the API validates the request, obtains structured analysis from Gemini, stores selected fields, and returns the analysis. Separate history endpoints list, retrieve, and delete stored records. The graph also shows request/response models, SQLite access, and logging setup. Relationships are based on the provided excerpts; no additional behavior is inferred from unsampled files.
Main entry points: api.py API routes · LLM.py LLM analysis call · operations.py History operations · db_connection.py SQLite connection
Components 10
API
- API routes
app/api.py - Request models
app/validation.py - Logging setup
app/logging_config.py
Analysis
- LLM analysis call
app/LLM.py - Analysis schema
app/LLM.py
History and storage
- History operations
app/operations.py - SQLite connection
app/db_connection.py - SQLite database
Other components
- Client
- Gemini API
Connections 9
- Client → API routes: submits requests
app/api.py - API routes → Request models: validates input
app/api.py - API routes → LLM analysis call: requests analysis
app/api.py - LLM analysis call → Gemini API: sends prompt
app/LLM.py - LLM analysis call → Analysis schema: validates result
app/LLM.py - API routes → History operations: stores and retrieves
app/api.py - History operations → SQLite connection: opens connection
app/operations.py - SQLite connection → SQLite database: creates and connects
app/db_connection.py - API routes → Logging setup: configures logging
app/api.py