How harshil-2008/feedback_agent works
This repository combines feedback collection and analysis with a multi-platform product/social search dashboard. The primary workflow accepts feedback, stores it, and processes it into sentiment scores and themes; a separate search workflow aggregates platform results and returns normalized results with insights. The tree also contains a second FastAPI entry point with placeholder search and analytics routes. Relationships below follow shown calls and imports; adapter behavior beyond the indexed references and the frontend’s wiring are not inferred.
Main entry points: orchestrator.py Search orchestrator · database.py Database access · job_runner.py Feedback processor · models.py Feedback and analysis records
Components 25
API and UI
- Service application
data_ingestion_service/main.py - Dashboard frontend
frontend/app.js - Feedback intake
data_ingestion_service/main.py - Theme and sentiment API
data_ingestion_service/api/routes.py - Search API
data_ingestion_service/api/search_routes.py - Legacy API application
main.py - Legacy analytics and search
api/routes.py - Scheduler trigger
data_ingestion_service/api/routes.py
Feedback analytics
- Feedback processor
data_ingestion_service/scheduler/job_runner.py - Sentiment analysis
data_ingestion_service/nlp/sentiment_analyzer.py - Theme extraction
data_ingestion_service/nlp/theme_extractor.py
Search aggregation
- Search orchestrator
data_ingestion_service/search/orchestrator.py - SerpAPI adapter
data_ingestion_service/search/adapters/serpapi.py - Google Shopping adapter
data_ingestion_service/search/adapters/google_shopping.py - eBay adapter
data_ingestion_service/search/adapters/ebay.py - Discord adapter
data_ingestion_service/search/adapters/discord.py - Twitter adapter
data_ingestion_service/search/adapters/twitter.py - Instagram adapter
data_ingestion_service/search/adapters/instagram.py - Facebook adapter
data_ingestion_service/search/adapters/facebook.py - Amazon adapter
data_ingestion_service/search/adapters/amazon.py - Search insights
data_ingestion_service/search/insights.py
Persistence
- Database access
storage/database.py - Feedback and analysis records
storage/models.py - PostgreSQL
Other components
- Dashboard user
Connections 29
- Dashboard user → Dashboard frontend: uses
- Service application → Theme and sentiment API: registers routes
data_ingestion_service/main.py - Service application → Search API: registers routes
data_ingestion_service/main.py - Service application → Dashboard frontend: serves static files
data_ingestion_service/main.py - Service application → Feedback intake: accepts feedback
data_ingestion_service/main.py - Feedback intake → Database access: opens session
data_ingestion_service/main.py - Feedback intake → Feedback and analysis records: creates feedback
data_ingestion_service/main.py - Theme and sentiment API → Database access: queries via
data_ingestion_service/api/routes.py - Theme and sentiment API → Feedback and analysis records: queries records
data_ingestion_service/api/routes.py - Scheduler trigger → Feedback processor: runs
data_ingestion_service/api/routes.py - Feedback processor → Database access: opens session
data_ingestion_service/scheduler/job_runner.py - Feedback processor → Feedback and analysis records: reads and writes
data_ingestion_service/scheduler/job_runner.py - Feedback processor → Sentiment analysis: analyzes text
data_ingestion_service/scheduler/job_runner.py - Feedback processor → Theme extraction: extracts themes
data_ingestion_service/scheduler/job_runner.py - Legacy API application → Legacy analytics and search: registers routes
main.py - Legacy analytics and search → Database access: queries via
api/routes.py - Legacy analytics and search → Feedback and analysis records: queries records
api/routes.py - Search API → Search orchestrator: aggregates query
data_ingestion_service/api/search_routes.py - Search orchestrator → SerpAPI adapter: dispatches
data_ingestion_service/search/orchestrator.py - Search orchestrator → Google Shopping adapter: dispatches
data_ingestion_service/search/orchestrator.py - Search orchestrator → eBay adapter: dispatches
data_ingestion_service/search/orchestrator.py - Search orchestrator → Discord adapter: dispatches
data_ingestion_service/search/orchestrator.py - Search orchestrator → Twitter adapter: dispatches
data_ingestion_service/search/orchestrator.py - Search orchestrator → Instagram adapter: dispatches
data_ingestion_service/search/orchestrator.py - Search orchestrator → Facebook adapter: dispatches
data_ingestion_service/search/orchestrator.py - Search orchestrator → Amazon adapter: dispatches
data_ingestion_service/search/orchestrator.py - Search orchestrator → Search insights: computes insights
data_ingestion_service/search/orchestrator.py - Database access → PostgreSQL: connects to
storage/database.py - Database access → Feedback and analysis records: creates tables from
storage/database.py