How bipedalsheep11/triscan-training-response-insight-scanner works
Feedback Analysis System is a Streamlit application for analyzing post-program survey data. A user uploads survey data and optional program context, configures clustering, and runs a six-stage analysis: detect and transform rating/text columns, cluster respondents, label clusters, classify sentiment and urgent flags, discover or assign themes, and extract ranked insights. The app then presents profiles, dashboard charts, a respondent table, and Ask AI. The sampled sources show the clustering call, document loading, prompt construction, and analysis-to-formatting calls; other stage and page links rely on README documentation.
Main entry points: app.py Pipeline Orchestrator · llm_client.py LLM Fallback Client · analysis_modules.py Cluster Profiles · auto_clustering.py Respondent Clustering
Components 17
Application
- Upload and Config
app.py - Pipeline Orchestrator
app.py - Results and Dashboard
app.py - Ask AI
app.py
Analysis Pipeline
- Respondent Clustering
backend/nlp/auto_clustering.py - Cluster Profiles
backend/nlp/analysis_modules.py - Sentiment and Flags
backend/nlp/analysis_modules.py - Theme Analysis
backend/nlp/analysis_modules.py - Actionable Insights
backend/nlp/analysis_modules.py
Context and Formatting
- Response Formatter
backend/nlp/format_responses.py - Document Loader
backend/utils/document_reader.py - System Prompt
backend/utils/get_system_prompt.py
Language Models
- LLM Fallback Client
backend/nlp/llm_client.py
Other components
- Analyst
- Anthropic
- Groq
- Ollama
Connections 20
- Analyst → Upload and Config: uploads data
README.md - Upload and Config → Pipeline Orchestrator: starts analysis
README.md - Upload and Config → Document Loader: loads context
app.py - Pipeline Orchestrator → System Prompt: builds prompt
app.py - Pipeline Orchestrator → Respondent Clustering: clusters responses
app.py - Pipeline Orchestrator → Cluster Profiles: labels clusters
README.md - Pipeline Orchestrator → Sentiment and Flags: classifies sentiment
README.md - Pipeline Orchestrator → Theme Analysis: analyzes themes
README.md - Pipeline Orchestrator → Actionable Insights: extracts insights
README.md - Cluster Profiles → Response Formatter: formats cluster data
backend/nlp/analysis_modules.py - Cluster Profiles → LLM Fallback Client: requests analysis
backend/nlp/analysis_modules.py - Sentiment and Flags → LLM Fallback Client: requests analysis
README.md - Theme Analysis → LLM Fallback Client: requests analysis
README.md - Actionable Insights → LLM Fallback Client: requests analysis
README.md - Pipeline Orchestrator → Results and Dashboard: presents results
README.md - Analyst → Ask AI: queries analysis
README.md - Ask AI → LLM Fallback Client: sends query
README.md - LLM Fallback Client → Anthropic: tries first
backend/nlp/llm_client.py - LLM Fallback Client → Groq: falls back
backend/nlp/llm_client.py - LLM Fallback Client → Ollama: falls back
backend/nlp/llm_client.py