-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Problem
Implement production FastAPI application with sentiment analysis capability. Start with lightweight models for speed.
Tasks
- Create FastAPI app in
ml/main.pyorml/src/app.py - Implement
GET /healthendpoint - Implement
POST /analyze/sentimentaccepting{text: string} - Return
{score: float(-1..1), confidence: float(0..1)} - Choose sentiment model (recommend
transformerspipeline orTextBlobfor MVP) - Store analysis results in Postgres via backend API call
- Add latency measurement (target <1s locally)
- Write unit tests for sentiment scoring
Acceptance Criteria
- ✅ FastAPI responds to health checks
- ✅ Sentiment endpoint returns scores within 1 second locally
- ✅ Results visible through backend
/api/analytics/overview - ✅ Confidence scores correlate with text certainty
Priority: P0 - Blocker
Labels: ml, fastapi, M1, P0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels