# debgitromeo/talent-scout architecture

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

- Interactive diagram: https://gitdiagram.com/debgitromeo/talent-scout
- Repository: https://github.com/debgitromeo/talent-scout

## Overview

Topic Scout is a command-line research-discovery pipeline: it accepts a topic workbook, source list and date range, searches configured scholarly and web sources, filters and verifies candidates, enriches ratings, and updates an Excel catalogue. The README documents the main stages and optional services; source excerpts show selected implementation details, while several pipeline and adapter call sites were not sampled, so uncertain internal links are omitted.

Main entry points: [`topic_scout/pipeline.py`](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/pipeline.py) (Run orchestrator), [`topic_scout/util/http.py`](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/util/http.py) (HTTP client), [`topic_scout/adapters/base.py`](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/base.py) (Adapter interface), [`topic_scout/util/llm.py`](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/util/llm.py) (LLM client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Inputs and planning"]
  node_cli["CLI entry<br/>[__main__.py]"]
  node_config["Run configuration<br/>[config.py]"]
  node_loaders["Input loaders<br/>[topics_loader.py]"]
  node_date["Date range<br/>[daterange.py]"]
  node_expansion["Topic expansion<br/>[expansion.py]"]
  node_planner["Query planner<br/>[planner.py]"]
  node_pipeline["Run orchestrator<br/>[pipeline.py]"]
end

subgraph group_retrieval["Source retrieval"]
  node_adapters["Adapter interface<br/>[base.py]"]
  node_arxiv["arXiv adapter<br/>[arxiv.py]"]
  node_github["GitHub adapter<br/>[github.py]"]
  node_huggingface["Hugging Face adapter<br/>[huggingface.py]"]
  node_sciencedirect["ScienceDirect adapter<br/>[sciencedirect.py]"]
  node_web["Web adapter<br/>[web.py]"]
end

subgraph group_assessment["Candidate assessment"]
  node_dedupe["Dedupe and dates<br/>[dedupe.py]"]
  node_cascade["Similarity cascade<br/>[cascade.py]"]
  node_embedder["Local embeddings<br/>[embedder.py]"]
  node_verifier["LLM verification<br/>[llm_verify.py]"]
  node_ratings["Ratings enrichment<br/>[ratings.py]"]
  node_writer["Workbook writer<br/>[excel_writer.py]"]
end

subgraph group_runtime["Runtime services"]
  node_http["HTTP client<br/>[http.py]"]
  node_llm["LLM client<br/>[llm.py]"]
  node_cache[("Response cache<br/>[cache.py]")]
end

node_user(("Researcher"))
node_external{{"Search and content APIs"}}
node_anthropic{{"Anthropic API"}}
node_workbook["Excel workbook"]

node_user -->|"provides inputs"| node_cli
node_cli -->|"starts run"| node_pipeline
node_pipeline -->|"loads settings"| node_config
node_pipeline -->|"loads topics and sources"| node_loaders
node_pipeline -->|"parses range"| node_date
node_pipeline -->|"expands topics"| node_expansion
node_pipeline -->|"plans retrieval"| node_planner
node_pipeline -.->|"dispatches retrieval"| node_adapters
node_adapters -.->|"implements"| node_arxiv
node_adapters -.->|"implements"| node_github
node_adapters -.->|"implements"| node_huggingface
node_adapters -.->|"implements"| node_sciencedirect
node_adapters -.->|"implements"| node_web
node_pipeline -->|"deduplicates candidates"| node_dedupe
node_pipeline -->|"ranks candidates"| node_cascade
node_cascade -.->|"scores with"| node_embedder
node_pipeline -->|"verifies survivors"| node_verifier
node_expansion -->|"requests expansion"| node_llm
node_verifier -->|"requests checks"| node_llm
node_llm -->|"calls model"| node_anthropic
node_pipeline -->|"enriches results"| node_ratings
node_pipeline -->|"writes catalogue"| node_writer
node_writer -->|"updates workbook"| node_workbook
node_arxiv -.->|"fetches data"| node_http
node_github -.->|"fetches data"| node_http
node_huggingface -.->|"fetches data"| node_http
node_sciencedirect -.->|"fetches data"| node_http
node_web -.->|"fetches data"| node_http
node_http -.->|"requests sources"| node_external
node_http -->|"caches responses"| node_cache
node_llm -->|"caches replies"| node_cache
node_pipeline -->|"retrieves source material"| node_external

click node_cli "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/__main__.py"
click node_config "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/config.py"
click node_loaders "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/io/topics_loader.py"
click node_date "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/daterange.py"
click node_expansion "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/planning/expansion.py"
click node_planner "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/planning/planner.py"
click node_pipeline "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/pipeline.py"
click node_adapters "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/base.py"
click node_arxiv "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/arxiv.py"
click node_github "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/github.py"
click node_huggingface "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/huggingface.py"
click node_sciencedirect "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/sciencedirect.py"
click node_web "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/web.py"
click node_dedupe "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/util/dedupe.py"
click node_cascade "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/ranking/cascade.py"
click node_embedder "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/ranking/embedder.py"
click node_verifier "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/ranking/llm_verify.py"
click node_ratings "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/enrich/ratings.py"
click node_writer "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/io/excel_writer.py"
click node_http "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/util/http.py"
click node_llm "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/util/llm.py"
click node_cache "https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/util/cache.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_cli,node_config,node_loaders,node_date,node_expansion,node_planner,node_pipeline toneBlue
class node_adapters,node_arxiv,node_github,node_huggingface,node_sciencedirect,node_web toneAmber
class node_dedupe,node_cascade,node_embedder,node_verifier,node_ratings,node_writer,node_external,node_anthropic toneMint
class node_http,node_llm,node_cache toneRose
class node_user,node_workbook toneIndigo
```

## Components

### Inputs and planning

- [CLI entry](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/__main__.py): `topic_scout/__main__.py`
- [Run configuration](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/config.py): `topic_scout/config.py`
- [Input loaders](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/io/topics_loader.py): `topic_scout/io/topics_loader.py`
- [Date range](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/daterange.py): `topic_scout/daterange.py`
- [Topic expansion](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/planning/expansion.py): `topic_scout/planning/expansion.py`
- [Query planner](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/planning/planner.py): `topic_scout/planning/planner.py`
- [Run orchestrator](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/pipeline.py): `topic_scout/pipeline.py`

### Source retrieval

- [Adapter interface](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/base.py): `topic_scout/adapters/base.py`
- [arXiv adapter](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/arxiv.py): `topic_scout/adapters/arxiv.py`
- [GitHub adapter](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/github.py): `topic_scout/adapters/github.py`
- [Hugging Face adapter](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/huggingface.py): `topic_scout/adapters/huggingface.py`
- [ScienceDirect adapter](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/sciencedirect.py): `topic_scout/adapters/sciencedirect.py`
- [Web adapter](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/adapters/web.py): `topic_scout/adapters/web.py`

### Candidate assessment

- [Dedupe and dates](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/util/dedupe.py): `topic_scout/util/dedupe.py`
- [Similarity cascade](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/ranking/cascade.py): `topic_scout/ranking/cascade.py`
- [Local embeddings](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/ranking/embedder.py): `topic_scout/ranking/embedder.py`
- [LLM verification](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/ranking/llm_verify.py): `topic_scout/ranking/llm_verify.py`
- [Ratings enrichment](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/enrich/ratings.py): `topic_scout/enrich/ratings.py`
- [Workbook writer](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/io/excel_writer.py): `topic_scout/io/excel_writer.py`

### Runtime services

- [HTTP client](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/util/http.py): `topic_scout/util/http.py`
- [LLM client](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/util/llm.py): `topic_scout/util/llm.py`
- [Response cache](https://github.com/debgitromeo/talent-scout/blob/main/topic_scout/util/cache.py): `topic_scout/util/cache.py`

### Other components

- **Researcher**
- **Search and content APIs**
- **Anthropic API**
- **Excel workbook**

## Connections

- Researcher → CLI entry: provides inputs (evidence: `README.md`)
- CLI entry → Run orchestrator: starts run (evidence: `topic_scout/__main__.py`)
- Run orchestrator → Run configuration: loads settings (evidence: `topic_scout/pipeline.py`)
- Run orchestrator → Input loaders: loads topics and sources (evidence: `topic_scout/pipeline.py`)
- Run orchestrator → Date range: parses range (evidence: `topic_scout/pipeline.py`)
- Run orchestrator → Topic expansion: expands topics (evidence: `README.md`)
- Run orchestrator → Query planner: plans retrieval (evidence: `README.md`)
- Run orchestrator → Adapter interface: dispatches retrieval (evidence: `topic_scout/pipeline.py`)
- Adapter interface → arXiv adapter: implements (evidence: `topic_scout/adapters/arxiv.py`)
- Adapter interface → GitHub adapter: implements (evidence: `topic_scout/adapters/github.py`)
- Adapter interface → Hugging Face adapter: implements (evidence: `topic_scout/adapters/huggingface.py`)
- Adapter interface → ScienceDirect adapter: implements (evidence: `topic_scout/adapters/sciencedirect.py`)
- Adapter interface → Web adapter: implements (evidence: `topic_scout/adapters/web.py`)
- Run orchestrator → Dedupe and dates: deduplicates candidates (evidence: `README.md`)
- Run orchestrator → Similarity cascade: ranks candidates (evidence: `README.md`)
- Similarity cascade → Local embeddings: scores with
- Run orchestrator → LLM verification: verifies survivors (evidence: `topic_scout/pipeline.py`)
- Topic expansion → LLM client: requests expansion (evidence: `topic_scout/planning/expansion.py`)
- LLM verification → LLM client: requests checks (evidence: `topic_scout/ranking/llm_verify.py`)
- LLM client → Anthropic API: calls model (evidence: `topic_scout/util/llm.py`)
- Run orchestrator → Ratings enrichment: enriches results (evidence: `README.md`)
- Run orchestrator → Workbook writer: writes catalogue (evidence: `README.md`)
- Workbook writer → Excel workbook: updates workbook (evidence: `README.md`)
- arXiv adapter → HTTP client: fetches data
- GitHub adapter → HTTP client: fetches data (evidence: `topic_scout/adapters/github.py`)
- Hugging Face adapter → HTTP client: fetches data (evidence: `topic_scout/adapters/huggingface.py`)
- ScienceDirect adapter → HTTP client: fetches data
- Web adapter → HTTP client: fetches data (evidence: `topic_scout/adapters/web.py`)
- HTTP client → Search and content APIs: requests sources
- HTTP client → Response cache: caches responses (evidence: `topic_scout/util/http.py`)
- LLM client → Response cache: caches replies (evidence: `topic_scout/util/llm.py`)
- Run orchestrator → Search and content APIs: retrieves source material (evidence: `README.md`)
