# eswarsainathreddy/daily-minutes architecture

> Architecture diagram of the GitHub repository eswarsainathreddy/daily-minutes, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eswarsainathreddy/daily-minutes
- Repository: https://github.com/eswarsainathreddy/daily-minutes

## Overview

Daily Minutes is a personalized daily-briefing application that gathers news, email, calendar, and weather data, enriches it with AI and user preferences, then presents cached results in a Streamlit dashboard. The README describes an agentic path using MCP tools, RAG context, and LLM generation; the tree also shows separate refresh, feedback, and calendar/email branches. Some implementation files were not sampled, so edges for those branches rely on explicit README statements or SOURCE INDEX references rather than inspection of their internals.

Main entry points: [`src/ui/streamlit_app.py`](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/ui/streamlit_app.py) (Streamlit dashboard), [`src/services/background_refresh_service.py`](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/background_refresh_service.py) (Background refresh), [`src/workflows/daily_brief_workflow.py`](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/workflows/daily_brief_workflow.py) (Daily brief workflow), [`src/services/rag_service.py`](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/rag_service.py) (RAG service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Presentation"]
  node_dashboard["Streamlit dashboard<br/>[streamlit_app.py]"]
  node_brief_view["Brief views<br/>[daily_brief.py]"]
  node_calendar_view["Calendar views"]
  node_email_view["Email views"]
end

subgraph group_intelligence["Intelligence"]
  node_workflow["Daily brief workflow"]
  node_react["ReAct agent<br/>[react_agent.py]"]
  node_news_agent["News agent<br/>[news_agent.py]"]
  node_background_refresh["Background refresh"]
  node_article_analysis["Article analysis"]
  node_ollama["Ollama LLM<br/>[ollama_service.py]"]
  node_mcp["MCP tool server<br/>[mcp_server.py]"]
end

subgraph group_sources["Data sources"]
  node_connectors["News connectors"]
  node_calendar_service["Calendar service"]
  node_calendar_connectors["Calendar connectors"]
  node_email_service["Email service<br/>[email_service.py]"]
  node_email_connectors["Email connectors"]
  node_weather_service["Weather service<br/>[weather_service.py]"]
end

subgraph group_memory["Memory and feedback"]
  node_rag["RAG service<br/>[rag_service.py]"]
  node_retrieval["Memory retrieval<br/>[retrieval.py]"]
  node_embeddings["Embedding service"]
  node_vector_store[("Vector store<br/>[vector_store.py]")]
  node_feedback["Feedback collector"]
  node_preferences["Preference tracker"]
end

subgraph group_runtime["Runtime and persistence"]
  node_sqlite[("SQLite manager<br/>[sqlite_manager.py]")]
  node_config["Configuration<br/>[config_manager.py]"]
  node_models["Domain models<br/>[models.py]"]
end

node_user(("User"))

node_user -->|"uses"| node_dashboard
node_dashboard -->|"renders"| node_brief_view
node_dashboard -->|"renders"| node_calendar_view
node_dashboard -->|"renders"| node_email_view
node_dashboard -->|"invokes"| node_workflow
node_dashboard -->|"starts"| node_background_refresh
node_dashboard -->|"reads cache"| node_sqlite
node_workflow -->|"uses"| node_react
node_workflow -->|"uses"| node_preferences
node_workflow -->|"uses"| node_feedback
node_react -->|"calls tools"| node_mcp
node_react -->|"reasons with"| node_ollama
node_news_agent -->|"fetches from"| node_connectors
node_news_agent -.->|"searches similar"| node_rag
node_background_refresh -->|"logs refresh"| node_sqlite
node_background_refresh -->|"analyzes articles"| node_article_analysis
node_background_refresh -->|"refreshes"| node_calendar_service
node_background_refresh -->|"refreshes"| node_email_service
node_background_refresh -->|"refreshes"| node_weather_service
node_article_analysis -.->|"analyzes with"| node_ollama
node_mcp -->|"registers tools"| node_connectors
node_connectors -.->|"uses external APIs"| node_ollama
node_calendar_service -->|"uses"| node_calendar_connectors
node_email_service -.->|"uses"| node_email_connectors
node_rag -->|"embeds with"| node_ollama
node_rag -.->|"stores and searches"| node_vector_store
node_retrieval -->|"generates vectors"| node_embeddings
node_retrieval -->|"searches and stores"| node_vector_store
node_feedback -->|"uses memory"| node_retrieval
node_feedback -->|"updates preferences"| node_preferences
node_preferences -->|"uses memory"| node_retrieval
node_calendar_view -->|"requests data"| node_calendar_service
node_calendar_view -->|"formats"| node_models
node_dashboard -->|"uses"| node_rag
node_dashboard -->|"uses"| node_config
node_config -->|"persists settings"| node_sqlite

click node_dashboard "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/ui/streamlit_app.py"
click node_brief_view "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/ui/components/daily_brief.py"
click node_calendar_view "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/ui/components/calendar_components.py"
click node_email_view "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/ui/components/email_components.py"
click node_workflow "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/workflows/daily_brief_workflow.py"
click node_react "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/agents/react_agent.py"
click node_news_agent "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/agents/news_agent.py"
click node_background_refresh "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/background_refresh_service.py"
click node_article_analysis "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/article_analyzer.py"
click node_ollama "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/ollama_service.py"
click node_mcp "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/mcp_server.py"
click node_connectors "https://github.com/eswarsainathreddy/daily-minutes/tree/main/src/connectors"
click node_calendar_service "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/calendar_service.py"
click node_calendar_connectors "https://github.com/eswarsainathreddy/daily-minutes/tree/main/src/connectors/calendar"
click node_email_service "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/email_service.py"
click node_email_connectors "https://github.com/eswarsainathreddy/daily-minutes/tree/main/src/connectors/email"
click node_weather_service "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/weather_service.py"
click node_rag "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/rag_service.py"
click node_retrieval "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/memory/retrieval.py"
click node_embeddings "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/memory/embedding_service.py"
click node_vector_store "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/memory/vector_store.py"
click node_feedback "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/feedback_collector.py"
click node_preferences "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/preference_tracker.py"
click node_sqlite "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/database/sqlite_manager.py"
click node_config "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/core/config_manager.py"
click node_models "https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/core/models.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dashboard,node_brief_view,node_calendar_view,node_email_view,node_user toneBlue
class node_workflow,node_react,node_news_agent,node_background_refresh,node_article_analysis,node_ollama,node_mcp toneAmber
class node_connectors,node_calendar_service,node_calendar_connectors,node_email_service,node_email_connectors,node_weather_service toneMint
class node_rag,node_retrieval,node_embeddings,node_vector_store,node_feedback,node_preferences toneRose
class node_sqlite,node_config,node_models toneIndigo
```

## Components

### Presentation

- [Streamlit dashboard](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/ui/streamlit_app.py): `src/ui/streamlit_app.py`
- [Brief views](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/ui/components/daily_brief.py): `src/ui/components/daily_brief.py`
- [Calendar views](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/ui/components/calendar_components.py): `src/ui/components/calendar_components.py`
- [Email views](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/ui/components/email_components.py): `src/ui/components/email_components.py`

### Intelligence

- [Daily brief workflow](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/workflows/daily_brief_workflow.py): `src/workflows/daily_brief_workflow.py`
- [ReAct agent](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/agents/react_agent.py): `src/agents/react_agent.py`
- [News agent](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/agents/news_agent.py): `src/agents/news_agent.py`
- [Background refresh](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/background_refresh_service.py): `src/services/background_refresh_service.py`
- [Article analysis](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/article_analyzer.py): `src/services/article_analyzer.py`
- [Ollama LLM](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/ollama_service.py): `src/services/ollama_service.py`
- [MCP tool server](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/mcp_server.py): `src/services/mcp_server.py`

### Data sources

- [News connectors](https://github.com/eswarsainathreddy/daily-minutes/tree/main/src/connectors): `src/connectors`
- [Calendar service](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/calendar_service.py): `src/services/calendar_service.py`
- [Calendar connectors](https://github.com/eswarsainathreddy/daily-minutes/tree/main/src/connectors/calendar): `src/connectors/calendar`
- [Email service](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/email_service.py): `src/services/email_service.py`
- [Email connectors](https://github.com/eswarsainathreddy/daily-minutes/tree/main/src/connectors/email): `src/connectors/email`
- [Weather service](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/weather_service.py): `src/services/weather_service.py`

### Memory and feedback

- [RAG service](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/rag_service.py): `src/services/rag_service.py`
- [Memory retrieval](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/memory/retrieval.py): `src/memory/retrieval.py`
- [Embedding service](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/memory/embedding_service.py): `src/memory/embedding_service.py`
- [Vector store](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/memory/vector_store.py): `src/memory/vector_store.py`
- [Feedback collector](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/feedback_collector.py): `src/services/feedback_collector.py`
- [Preference tracker](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/services/preference_tracker.py): `src/services/preference_tracker.py`

### Runtime and persistence

- [SQLite manager](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/database/sqlite_manager.py): `src/database/sqlite_manager.py`
- [Configuration](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/core/config_manager.py): `src/core/config_manager.py`
- [Domain models](https://github.com/eswarsainathreddy/daily-minutes/blob/main/src/core/models.py): `src/core/models.py`

### Other components

- **User**

## Connections

- User → Streamlit dashboard: uses
- Streamlit dashboard → Brief views: renders (evidence: `src/ui/streamlit_app.py`)
- Streamlit dashboard → Calendar views: renders (evidence: `src/ui/streamlit_app.py`)
- Streamlit dashboard → Email views: renders (evidence: `src/ui/streamlit_app.py`)
- Streamlit dashboard → Daily brief workflow: invokes (evidence: `src/ui/streamlit_app.py`)
- Streamlit dashboard → Background refresh: starts (evidence: `src/ui/streamlit_app.py`)
- Streamlit dashboard → SQLite manager: reads cache (evidence: `src/ui/streamlit_app.py`)
- Daily brief workflow → ReAct agent: uses (evidence: `src/workflows/daily_brief_workflow.py`)
- Daily brief workflow → Preference tracker: uses (evidence: `src/workflows/daily_brief_workflow.py`)
- Daily brief workflow → Feedback collector: uses (evidence: `src/workflows/daily_brief_workflow.py`)
- ReAct agent → MCP tool server: calls tools (evidence: `src/agents/react_agent.py`)
- ReAct agent → Ollama LLM: reasons with (evidence: `src/agents/react_agent.py`)
- News agent → News connectors: fetches from (evidence: `src/agents/news_agent.py`)
- News agent → RAG service: searches similar
- Background refresh → SQLite manager: logs refresh (evidence: `src/services/background_refresh_service.py`)
- Background refresh → Article analysis: analyzes articles (evidence: `src/services/background_refresh_service.py`)
- Background refresh → Calendar service: refreshes (evidence: `src/services/background_refresh_service.py`)
- Background refresh → Email service: refreshes (evidence: `src/services/background_refresh_service.py`)
- Background refresh → Weather service: refreshes (evidence: `src/services/background_refresh_service.py`)
- Article analysis → Ollama LLM: analyzes with
- MCP tool server → News connectors: registers tools
- News connectors → Ollama LLM: uses external APIs
- Calendar service → Calendar connectors: uses (evidence: `src/services/calendar_service.py`)
- Email service → Email connectors: uses
- RAG service → Ollama LLM: embeds with (evidence: `src/services/rag_service.py`)
- RAG service → Vector store: stores and searches
- Memory retrieval → Embedding service: generates vectors (evidence: `src/memory/retrieval.py`)
- Memory retrieval → Vector store: searches and stores (evidence: `src/memory/retrieval.py`)
- Feedback collector → Memory retrieval: uses memory (evidence: `src/services/feedback_collector.py`)
- Feedback collector → Preference tracker: updates preferences (evidence: `src/services/feedback_collector.py`)
- Preference tracker → Memory retrieval: uses memory (evidence: `src/services/preference_tracker.py`)
- Calendar views → Calendar service: requests data (evidence: `src/ui/components/calendar_components.py`)
- Calendar views → Domain models: formats (evidence: `src/ui/components/calendar_components.py`)
- Streamlit dashboard → RAG service: uses (evidence: `src/ui/streamlit_app.py`)
- Streamlit dashboard → Configuration: uses (evidence: `src/ui/streamlit_app.py`)
- Configuration → SQLite manager: persists settings (evidence: `src/core/config_manager.py`)
