How dcoelho045/nfl-intelligence-platform works
NFL Intelligence Platform provides deterministic NFL analytics, trained game and fantasy predictions, and evidence-backed assistant answers through HTTP and MCP interfaces. The main path is client request → adapter → shared services → nflverse data, model artifacts, or retrieval sources → typed, provenance-bearing result. The assistant orchestrates tools but does not calculate statistics or probabilities. The graph preserves the documented analytics, prediction, curated-knowledge, web-search, and MCP capabilities; connections for unsampled subsystems are included only where the README or source index supports them.
Main entry points: container.py Service container · agent.py Assistant agent · research.py Research service · services Analytics services
Components 24
Product interfaces
- HTTP API
src/nfl_platform/api/app.py - MCP server
src/nfl_platform/mcp_server/server.py - Assistant route
src/nfl_platform/api/routers/assistant.py - MCP tools
src/nfl_platform/mcp_server/tools
Domain services
- Service container
src/nfl_platform/services/container.py - Analytics services
src/nfl_platform/services - Research service
src/nfl_platform/services/research.py - Prediction service
src/nfl_platform/services/predictions.py
Data and analytics
- NFL data loader
src/nfl_platform/data/ingestion/loader.py - nflverse data
- Deterministic analytics
src/nfl_platform/analytics - Data snapshots
src/nfl_platform/data/storage/snapshots.py
Prediction models
- Model training
src/nfl_platform/ml/training/pipeline.py - Game and fantasy features
src/nfl_platform/ml/features - Model registry
src/nfl_platform/ml/registry/store.py - Game and fantasy predictions
src/nfl_platform/ml/predict
Assistant and evidence
- Assistant agent
src/nfl_platform/llm/agent.py - Assistant tools
src/nfl_platform/llm/tools - Chat provider
src/nfl_platform/llm/providers/openai_client.py - Curated knowledge search
src/nfl_platform/retrieval/knowledge/retriever.py - Web search
src/nfl_platform/retrieval/web/search.py - Search provider
src/nfl_platform/retrieval/web/provider.py
Other components
- Client
- Web search service
Connections 29
- Client → HTTP API: sends request
README.md - Client → MCP server: uses tools
README.md - HTTP API → Service container: resolves services
src/nfl_platform/api/app.py - HTTP API → Assistant route: routes assistant
src/nfl_platform/api/app.py - MCP server → Service container: uses services
src/nfl_platform/mcp_server/server.py - MCP server → MCP tools: registers tools
src/nfl_platform/mcp_server/server.py - Service container → Analytics services: builds services
src/nfl_platform/services/container.py - Service container → Research service: builds service
src/nfl_platform/services/container.py - Service container → Prediction service: builds service
src/nfl_platform/services/container.py - Service container → NFL data loader: shares loader
src/nfl_platform/services/container.py - NFL data loader → nflverse data: loads datasets
src/nfl_platform/data/ingestion/loader.py - Analytics services → Deterministic analytics: computes statistics
README.md - Deterministic analytics → NFL data loader: reads datasets
src/nfl_platform/analytics/players.py - Model training → Game and fantasy features: builds features
src/nfl_platform/ml/training/pipeline.py - Model training → Model registry: writes artifacts
src/nfl_platform/ml/training/pipeline.py - Model training → Data snapshots: uses snapshots
src/nfl_platform/ml/cli.py - Prediction service → Model registry: loads artifacts
src/nfl_platform/services/container.py - Prediction service → Game and fantasy predictions: produces predictions
README.md - Game and fantasy predictions → Client: returns predictions
README.md - Assistant route → Assistant agent: asks question
README.md - MCP tools → Analytics services: calls services
README.md - Assistant agent → Assistant tools: dispatches tools
- Assistant tools → Analytics services: calls services
README.md - Assistant agent → Chat provider: requests completion
- Assistant agent → Research service: requests evidence
- Research service → Curated knowledge search: searches corpus
src/nfl_platform/services/container.py - Research service → Web search: searches web
src/nfl_platform/services/research.py - Web search → Search provider: queries provider
src/nfl_platform/retrieval/web/search.py - Search provider → Web search service: searches