How bigdatateam5/marketscope-ai-powered-industry-segment-intelligence-platform works
Project Type & Purpose
• MarketScope AI is a full‑stack, microservices‑based analytics platform for healthcare product insights.
• It combines a Streamlit frontend, a suite of FastAPI “MCP” microservices, AI agents, a RAG pipeline (Pinecone vector store), a Snowflake data warehouse, and batch ETL (Apache Airflow).
File Structure
Top‑level files & folders:
• Dockerfile, docker‑compose.yml – container definitions and local orchestration
• .github/workflows/gce‑deploy.yml – CI/CD to Google Cloud
• run.py, fix_endpoints.py – unified entrypoints
• pyproject.toml, requirements.txt – dependency specs
Subdirectories:
• frontend/ – Streamlit UI (app.py + pages/*.py, styles.css)
• mcp_servers/ – five domain‑specific FastAPI services on ports 8000–8004
• agents/ – core AI orchestration (unified_agent.py, custom_mcp_client.py, utils)
• config/ – global settings, LLM client (litellm_service), paths
• Airflow/ – Dockerfile, DAGs for ingesting PDFs/JSON, chunking, loading vectors
• tests/ – unit tests for Pinecone, agents, etc.
• setup_snowflake.py, view_snowflake_tables.py – Snowflake integration scripts
README for Additional Insights
• Features: market segmentation, query optimization (RAG over Kotler’s book), product comparison, sales & marketing analysis
• Dual run methods: run_servers.py (starter), or manually start FastAPI + Streamlit
• Deployed MCP endpoints on 8000–8004; Streamlit on 8501
• ETL for RAG knowledge, Snowflake for structured data