# sakshi3027/signal architecture

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

- Interactive diagram: https://gitdiagram.com/sakshi3027/signal
- Repository: https://github.com/sakshi3027/signal

## Overview

Signal autonomously gathers AI/ML and Fintech signals, turns domain batches into evaluated intelligence reports, stores reports and embeddings, and serves them through an API and dashboard. The graph preserves the documented ingestion, agent, storage, analytics, search, and reporting capabilities. Sampled source confirms several orchestration and storage calls; broader subsystem links rely on the README, so unsampled implementation details are not inferred.

Main entry points: [`packages/ingestion/src/ingestion/pipeline.py`](https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/pipeline.py) (Ingestion pipeline), [`dashboard/app/page.tsx`](https://github.com/sakshi3027/signal/blob/main/dashboard/app/page.tsx) (Intelligence feed), [`api/main.py`](https://github.com/sakshi3027/signal/blob/main/api/main.py) (FastAPI application), [`packages/agent/src/agent/nodes.py`](https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/nodes.py) (Supervisor, researcher, analyst, judge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Signal ingestion"]
  node_ingest_pipeline["Ingestion pipeline<br/>[pipeline.py]"]
  node_rss["RSS feeds<br/>[feeds.py]"]
  node_github["GitHub fetcher<br/>[github_source.py]"]
  node_arxiv["arXiv fetcher<br/>[arxiv_source.py]"]
  node_signal_types["Signal types<br/>[sources.py]"]
end

subgraph group_agent["Intelligence agent"]
  node_agent_runner["Agent runner<br/>[runner.py]"]
  node_agent_graph["Agent graph<br/>[graph.py]"]
  node_agent_nodes["Supervisor, researcher, analyst, judge<br/>[nodes.py]"]
  node_agent_state["Agent state<br/>[state.py]"]
  node_agent_tools["Signal query tools<br/>[tools.py]"]
end

subgraph group_storage["Storage and analytics"]
  node_duckdb[("Raw signal store<br/>[db.py]")]
  node_postgres[("Report database<br/>[db.py]")]
  node_vector[("Vector search store<br/>[vector_store.py]")]
  node_storage_runner["Report storage runner<br/>[runner.py]"]
  node_dbt["Analytics models<br/>[dbt_models.py]"]
end

subgraph group_service["API service"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_api_reports["Reports endpoints<br/>[reports.py]"]
  node_api_search["Semantic search endpoint<br/>[search.py]"]
  node_api_analytics["Analytics endpoints<br/>[analytics.py]"]
  node_api_pipeline["Pipeline trigger and status<br/>[pipeline.py]"]
  node_health["Health checks<br/>[dependencies.py]"]
  node_api_models["API response models<br/>[models.py]"]
end

subgraph group_dashboard["Dashboard"]
  node_dashboard_page["Intelligence feed<br/>[page.tsx]"]
  node_report_card["Report cards<br/>[ReportCard.tsx]"]
  node_search_box["Search interface<br/>[SearchBox.tsx]"]
  node_trend_chart["Trend charts<br/>[TrendChart.tsx]"]
  node_source_table["Source reliability<br/>[SourceTable.tsx]"]
end

node_scheduler(("Six-hour scheduler"))
node_sources{{"External sources"}}
node_mistral{{"Mistral via Ollama"}}
node_web_user(("Dashboard user"))

node_scheduler -->|"triggers periodically"| node_ingest_pipeline
node_sources -->|"provides feeds"| node_rss
node_sources -->|"provides repository data"| node_github
node_sources -->|"provides papers"| node_arxiv
node_ingest_pipeline -->|"fetches"| node_rss
node_ingest_pipeline -->|"fetches"| node_github
node_ingest_pipeline -->|"fetches"| node_arxiv
node_rss -->|"creates signals"| node_signal_types
node_arxiv -->|"creates signals"| node_signal_types
node_ingest_pipeline -->|"loads raw signals"| node_duckdb
node_ingest_pipeline -->|"signals feed analysis"| node_agent_runner
node_agent_runner -->|"runs graph"| node_agent_graph
node_agent_graph -->|"dispatches nodes"| node_agent_nodes
node_agent_graph -->|"uses state"| node_agent_state
node_agent_nodes -->|"queries signals"| node_agent_tools
node_agent_nodes -->|"invokes model"| node_mistral
node_agent_nodes -->|"retries low scores"| node_agent_nodes
node_agent_runner -->|"passes reports"| node_storage_runner
node_storage_runner -->|"saves reports"| node_postgres
node_storage_runner -->|"stores embeddings"| node_vector
node_storage_runner -->|"runs models"| node_dbt
node_postgres -->|"serves reports"| node_api_reports
node_vector -->|"answers vector queries"| node_api_search
node_dbt -->|"supplies analytics"| node_api_analytics
node_api_app -->|"registers route"| node_api_reports
node_api_app -->|"registers route"| node_api_search
node_api_app -->|"registers route"| node_api_analytics
node_api_app -->|"registers route"| node_api_pipeline
node_api_app -->|"checks health"| node_health
node_api_pipeline -->|"runs ingestion"| node_ingest_pipeline
node_api_pipeline -->|"runs agent"| node_agent_runner
node_api_pipeline -->|"stores reports"| node_storage_runner
node_api_reports -->|"formats responses"| node_api_models
node_api_search -->|"formats responses"| node_api_models
node_api_analytics -->|"formats responses"| node_api_models
node_web_user -->|"views feed"| node_dashboard_page
node_dashboard_page -->|"requests reports and analytics"| node_api_app
node_dashboard_page -->|"renders"| node_report_card
node_dashboard_page -->|"renders"| node_search_box
node_dashboard_page -->|"renders"| node_trend_chart
node_dashboard_page -->|"renders"| node_source_table
node_search_box -->|"submits semantic queries"| node_api_search

click node_ingest_pipeline "https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/pipeline.py"
click node_rss "https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/feeds.py"
click node_github "https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/github_source.py"
click node_arxiv "https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/arxiv_source.py"
click node_signal_types "https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/sources.py"
click node_duckdb "https://github.com/sakshi3027/signal/blob/main/packages/storage/src/storage/db.py"
click node_agent_runner "https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/runner.py"
click node_agent_graph "https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/graph.py"
click node_agent_nodes "https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/nodes.py"
click node_agent_state "https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/state.py"
click node_agent_tools "https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/tools.py"
click node_postgres "https://github.com/sakshi3027/signal/blob/main/packages/storage/src/storage/db.py"
click node_vector "https://github.com/sakshi3027/signal/blob/main/packages/storage/src/storage/vector_store.py"
click node_storage_runner "https://github.com/sakshi3027/signal/blob/main/packages/storage/src/storage/runner.py"
click node_dbt "https://github.com/sakshi3027/signal/blob/main/packages/storage/src/storage/dbt_models.py"
click node_api_app "https://github.com/sakshi3027/signal/blob/main/api/main.py"
click node_api_reports "https://github.com/sakshi3027/signal/blob/main/api/routes/reports.py"
click node_api_search "https://github.com/sakshi3027/signal/blob/main/api/routes/search.py"
click node_api_analytics "https://github.com/sakshi3027/signal/blob/main/api/routes/analytics.py"
click node_api_pipeline "https://github.com/sakshi3027/signal/blob/main/api/routes/pipeline.py"
click node_health "https://github.com/sakshi3027/signal/blob/main/api/dependencies.py"
click node_api_models "https://github.com/sakshi3027/signal/blob/main/api/models.py"
click node_dashboard_page "https://github.com/sakshi3027/signal/blob/main/dashboard/app/page.tsx"
click node_report_card "https://github.com/sakshi3027/signal/blob/main/dashboard/components/ReportCard.tsx"
click node_search_box "https://github.com/sakshi3027/signal/blob/main/dashboard/components/SearchBox.tsx"
click node_trend_chart "https://github.com/sakshi3027/signal/blob/main/dashboard/components/TrendChart.tsx"
click node_source_table "https://github.com/sakshi3027/signal/blob/main/dashboard/components/SourceTable.tsx"

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_ingest_pipeline,node_rss,node_github,node_arxiv,node_signal_types,node_web_user toneBlue
class node_agent_runner,node_agent_graph,node_agent_nodes,node_agent_state,node_agent_tools toneAmber
class node_duckdb,node_postgres,node_vector,node_storage_runner,node_dbt toneMint
class node_api_app,node_api_reports,node_api_search,node_api_analytics,node_api_pipeline,node_health,node_api_models,node_scheduler toneRose
class node_dashboard_page,node_report_card,node_search_box,node_trend_chart,node_source_table,node_sources,node_mistral toneIndigo
```

## Components

### Signal ingestion

- [Ingestion pipeline](https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/pipeline.py): `packages/ingestion/src/ingestion/pipeline.py`
- [RSS feeds](https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/feeds.py): `packages/ingestion/src/ingestion/feeds.py`
- [GitHub fetcher](https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/github_source.py): `packages/ingestion/src/ingestion/github_source.py`
- [arXiv fetcher](https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/arxiv_source.py): `packages/ingestion/src/ingestion/arxiv_source.py`
- [Signal types](https://github.com/sakshi3027/signal/blob/main/packages/ingestion/src/ingestion/sources.py): `packages/ingestion/src/ingestion/sources.py`

### Intelligence agent

- [Agent runner](https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/runner.py): `packages/agent/src/agent/runner.py`
- [Agent graph](https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/graph.py): `packages/agent/src/agent/graph.py`
- [Supervisor, researcher, analyst, judge](https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/nodes.py): `packages/agent/src/agent/nodes.py`
- [Agent state](https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/state.py): `packages/agent/src/agent/state.py`
- [Signal query tools](https://github.com/sakshi3027/signal/blob/main/packages/agent/src/agent/tools.py): `packages/agent/src/agent/tools.py`

### Storage and analytics

- [Raw signal store](https://github.com/sakshi3027/signal/blob/main/packages/storage/src/storage/db.py): `packages/storage/src/storage/db.py`
- [Report database](https://github.com/sakshi3027/signal/blob/main/packages/storage/src/storage/db.py): `packages/storage/src/storage/db.py`
- [Vector search store](https://github.com/sakshi3027/signal/blob/main/packages/storage/src/storage/vector_store.py): `packages/storage/src/storage/vector_store.py`
- [Report storage runner](https://github.com/sakshi3027/signal/blob/main/packages/storage/src/storage/runner.py): `packages/storage/src/storage/runner.py`
- [Analytics models](https://github.com/sakshi3027/signal/blob/main/packages/storage/src/storage/dbt_models.py): `packages/storage/src/storage/dbt_models.py`

### API service

- [FastAPI application](https://github.com/sakshi3027/signal/blob/main/api/main.py): `api/main.py`
- [Reports endpoints](https://github.com/sakshi3027/signal/blob/main/api/routes/reports.py): `api/routes/reports.py`
- [Semantic search endpoint](https://github.com/sakshi3027/signal/blob/main/api/routes/search.py): `api/routes/search.py`
- [Analytics endpoints](https://github.com/sakshi3027/signal/blob/main/api/routes/analytics.py): `api/routes/analytics.py`
- [Pipeline trigger and status](https://github.com/sakshi3027/signal/blob/main/api/routes/pipeline.py): `api/routes/pipeline.py`
- [Health checks](https://github.com/sakshi3027/signal/blob/main/api/dependencies.py): `api/dependencies.py`
- [API response models](https://github.com/sakshi3027/signal/blob/main/api/models.py): `api/models.py`

### Dashboard

- [Intelligence feed](https://github.com/sakshi3027/signal/blob/main/dashboard/app/page.tsx): `dashboard/app/page.tsx`
- [Report cards](https://github.com/sakshi3027/signal/blob/main/dashboard/components/ReportCard.tsx): `dashboard/components/ReportCard.tsx`
- [Search interface](https://github.com/sakshi3027/signal/blob/main/dashboard/components/SearchBox.tsx): `dashboard/components/SearchBox.tsx`
- [Trend charts](https://github.com/sakshi3027/signal/blob/main/dashboard/components/TrendChart.tsx): `dashboard/components/TrendChart.tsx`
- [Source reliability](https://github.com/sakshi3027/signal/blob/main/dashboard/components/SourceTable.tsx): `dashboard/components/SourceTable.tsx`

### Other components

- **Six-hour scheduler**
- **External sources**
- **Mistral via Ollama**
- **Dashboard user**

## Connections

- Six-hour scheduler → Ingestion pipeline: triggers periodically
- External sources → RSS feeds: provides feeds
- External sources → GitHub fetcher: provides repository data
- External sources → arXiv fetcher: provides papers
- Ingestion pipeline → RSS feeds: fetches (evidence: `packages/ingestion/src/ingestion/pipeline.py`)
- Ingestion pipeline → GitHub fetcher: fetches (evidence: `packages/ingestion/src/ingestion/pipeline.py`)
- Ingestion pipeline → arXiv fetcher: fetches (evidence: `packages/ingestion/src/ingestion/pipeline.py`)
- RSS feeds → Signal types: creates signals (evidence: `packages/ingestion/src/ingestion/pipeline.py`)
- arXiv fetcher → Signal types: creates signals (evidence: `packages/ingestion/src/ingestion/arxiv_source.py`)
- Ingestion pipeline → Raw signal store: loads raw signals (evidence: `packages/ingestion/src/ingestion/pipeline.py`)
- Ingestion pipeline → Agent runner: signals feed analysis
- Agent runner → Agent graph: runs graph (evidence: `packages/agent/src/agent/runner.py`)
- Agent graph → Supervisor, researcher, analyst, judge: dispatches nodes (evidence: `packages/agent/src/agent/graph.py`)
- Agent graph → Agent state: uses state (evidence: `packages/agent/src/agent/graph.py`)
- Supervisor, researcher, analyst, judge → Signal query tools: queries signals (evidence: `packages/agent/src/agent/nodes.py`)
- Supervisor, researcher, analyst, judge → Mistral via Ollama: invokes model (evidence: `packages/agent/src/agent/nodes.py`)
- Supervisor, researcher, analyst, judge → Supervisor, researcher, analyst, judge: retries low scores (evidence: `packages/agent/src/agent/nodes.py`)
- Agent runner → Report storage runner: passes reports (evidence: `run_pipeline.py`)
- Report storage runner → Report database: saves reports (evidence: `packages/storage/src/storage/runner.py`)
- Report storage runner → Vector search store: stores embeddings (evidence: `packages/storage/src/storage/runner.py`)
- Report storage runner → Analytics models: runs models (evidence: `packages/storage/src/storage/runner.py`)
- Report database → Reports endpoints: serves reports
- Vector search store → Semantic search endpoint: answers vector queries (evidence: `api/routes/search.py`)
- Analytics models → Analytics endpoints: supplies analytics
- FastAPI application → Reports endpoints: registers route (evidence: `api/main.py`)
- FastAPI application → Semantic search endpoint: registers route (evidence: `api/main.py`)
- FastAPI application → Analytics endpoints: registers route (evidence: `api/main.py`)
- FastAPI application → Pipeline trigger and status: registers route (evidence: `api/main.py`)
- FastAPI application → Health checks: checks health (evidence: `api/main.py`)
- Pipeline trigger and status → Ingestion pipeline: runs ingestion (evidence: `api/routes/pipeline.py`)
- Pipeline trigger and status → Agent runner: runs agent (evidence: `api/routes/pipeline.py`)
- Pipeline trigger and status → Report storage runner: stores reports (evidence: `api/routes/pipeline.py`)
- Reports endpoints → API response models: formats responses (evidence: `api/routes/reports.py`)
- Semantic search endpoint → API response models: formats responses (evidence: `api/routes/search.py`)
- Analytics endpoints → API response models: formats responses (evidence: `api/routes/analytics.py`)
- Dashboard user → Intelligence feed: views feed
- Intelligence feed → FastAPI application: requests reports and analytics
- Intelligence feed → Report cards: renders (evidence: `dashboard/app/page.tsx`)
- Intelligence feed → Search interface: renders (evidence: `dashboard/app/page.tsx`)
- Intelligence feed → Trend charts: renders (evidence: `dashboard/app/page.tsx`)
- Intelligence feed → Source reliability: renders (evidence: `dashboard/app/page.tsx`)
- Search interface → Semantic search endpoint: submits semantic queries
