# rnossair/pathreview-ai301-fa26-s1 architecture

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

- Interactive diagram: https://gitdiagram.com/rnossair/pathreview-ai301-fa26-s1
- Repository: https://github.com/rnossair/pathreview-ai301-fa26-s1

## Overview

PathReview lets a developer create a portfolio profile and request a review from the dashboard. The API queues review processing, which gathers profile sources, runs agent analysis, produces RAG-based feedback, applies safety checks, and stores review status and results for the dashboard to retrieve. The README also documents resume, GitHub, and repository ingestion; agent tools; evaluation; and safety capabilities. Several implementation details are unsampled, and the review service’s agent/RAG stages are explicitly placeholders, so those edges reflect its documented stage calls rather than verified production integrations.

Main entry points: [`core/services/review_service.py`](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/services/review_service.py) (Review Processing), [`ingestion/pipeline.py`](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/ingestion/pipeline.py) (Ingestion Pipeline), [`api/routes/reviews.py`](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/api/routes/reviews.py) (Review Routes), [`frontend/src/services/api.ts`](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/frontend/src/services/api.ts) (API Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client_api["Dashboard and API"]
  node_dashboard["Web Dashboard<br/>[App.tsx]"]
  node_frontend_api["API Client<br/>[api.ts]"]
  node_review_routes["Review Routes<br/>[reviews.py]"]
  node_auth["Authentication<br/>[auth.py]"]
end

subgraph group_review["Review Orchestration"]
  node_review_service["Review Processing<br/>[review_service.py]"]
end

subgraph group_ingestion["Profile Ingestion"]
  node_ingestion_pipeline["Ingestion Pipeline<br/>[pipeline.py]"]
  node_parsers["Source Parsers"]
  node_chunking["Chunking Strategies"]
  node_embeddings["Embedding Processor<br/>[batch_processor.py]"]
end

subgraph group_intelligence["Analysis and Safety"]
  node_agent["Agent Orchestrator<br/>[orchestrator.py]"]
  node_agent_tools["Analysis Tools"]
  node_retrieval["Hybrid Retrieval"]
  node_generation["Review Generation"]
  node_evaluation["Quality Evaluation"]
  node_safety["Safety Guardrails"]
  node_vector_store[("Vector Store<br/>[vector_store.py]")]
end

subgraph group_persistence["Application Data"]
  node_profile_service["Profile Service<br/>[profile_service.py]"]
  node_database[("Relational Database<br/>[database.py]")]
  node_profile_model["Profile Records<br/>[profile.py]"]
  node_source_model["Ingested Sources<br/>[ingested_source.py]"]
  node_review_model["Review Records<br/>[review.py]"]
end

node_developer(("Developer"))

node_developer -->|"uses"| node_dashboard
node_dashboard -->|"requests data"| node_frontend_api
node_frontend_api -->|"calls review API"| node_review_routes
node_review_routes -->|"authenticates"| node_auth
node_review_routes -->|"creates and processes"| node_review_service
node_review_service -->|"ingests profile sources"| node_ingestion_pipeline
node_ingestion_pipeline -->|"parses sources"| node_parsers
node_ingestion_pipeline -->|"chunks content"| node_chunking
node_ingestion_pipeline -->|"processes chunks"| node_embeddings
node_review_service -->|"runs analysis"| node_agent
node_agent -.->|"orchestrates tools"| node_agent_tools
node_review_service -->|"retrieves evidence"| node_retrieval
node_review_service -->|"generates feedback"| node_generation
node_generation -.->|"uses retrieved context"| node_retrieval
node_review_service -->|"checks output"| node_safety
node_evaluation -.->|"evaluates output"| node_generation
node_review_service -->|"loads profile"| node_profile_model
node_review_service -->|"records sources"| node_source_model
node_review_service -->|"stores results"| node_review_model
node_profile_service -->|"manages profiles"| node_profile_model
node_profile_service -->|"manages sources"| node_source_model
node_profile_model -->|"persists in"| node_database
node_source_model -->|"persists in"| node_database
node_review_model -->|"persists in"| node_database
node_embeddings -.->|"stores vectors"| node_vector_store
node_frontend_api -->|"polls review status"| node_review_routes

click node_dashboard "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/frontend/src/App.tsx"
click node_frontend_api "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/frontend/src/services/api.ts"
click node_review_routes "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/api/routes/reviews.py"
click node_auth "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/api/middleware/auth.py"
click node_review_service "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/services/review_service.py"
click node_ingestion_pipeline "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/ingestion/pipeline.py"
click node_parsers "https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/ingestion/parsers"
click node_chunking "https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/ingestion/chunking"
click node_embeddings "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/ingestion/embeddings/batch_processor.py"
click node_agent "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/agent/orchestrator.py"
click node_agent_tools "https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/agent/tools"
click node_retrieval "https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/rag/retriever"
click node_generation "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/rag/generator/review_generator.py"
click node_evaluation "https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/rag/evaluator"
click node_safety "https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/safety"
click node_profile_service "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/services/profile_service.py"
click node_database "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/database.py"
click node_profile_model "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/models/profile.py"
click node_source_model "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/models/ingested_source.py"
click node_review_model "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/models/review.py"
click node_vector_store "https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/rag/retriever/vector_store.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_frontend_api,node_review_routes,node_auth toneBlue
class node_review_service toneAmber
class node_ingestion_pipeline,node_parsers,node_chunking,node_embeddings toneMint
class node_agent,node_agent_tools,node_retrieval,node_generation,node_evaluation,node_safety,node_vector_store toneRose
class node_profile_service,node_database,node_profile_model,node_source_model,node_review_model,node_developer toneIndigo
```

## Components

### Dashboard and API

- [Web Dashboard](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [API Client](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`
- [Review Routes](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/api/routes/reviews.py): `api/routes/reviews.py`
- [Authentication](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/api/middleware/auth.py): `api/middleware/auth.py`

### Review Orchestration

- [Review Processing](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/services/review_service.py): `core/services/review_service.py`

### Profile Ingestion

- [Ingestion Pipeline](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/ingestion/pipeline.py): `ingestion/pipeline.py`
- [Source Parsers](https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/ingestion/parsers): `ingestion/parsers`
- [Chunking Strategies](https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/ingestion/chunking): `ingestion/chunking`
- [Embedding Processor](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/ingestion/embeddings/batch_processor.py): `ingestion/embeddings/batch_processor.py`

### Analysis and Safety

- [Agent Orchestrator](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/agent/orchestrator.py): `agent/orchestrator.py`
- [Analysis Tools](https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/agent/tools): `agent/tools`
- [Hybrid Retrieval](https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/rag/retriever): `rag/retriever`
- [Review Generation](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/rag/generator/review_generator.py): `rag/generator/review_generator.py`
- [Quality Evaluation](https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/rag/evaluator): `rag/evaluator`
- [Safety Guardrails](https://github.com/rnossair/pathreview-ai301-fa26-s1/tree/main/safety): `safety`
- [Vector Store](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/rag/retriever/vector_store.py): `rag/retriever/vector_store.py`

### Application Data

- [Profile Service](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/services/profile_service.py): `core/services/profile_service.py`
- [Relational Database](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/database.py): `core/database.py`
- [Profile Records](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/models/profile.py): `core/models/profile.py`
- [Ingested Sources](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/models/ingested_source.py): `core/models/ingested_source.py`
- [Review Records](https://github.com/rnossair/pathreview-ai301-fa26-s1/blob/main/core/models/review.py): `core/models/review.py`

### Other components

- **Developer**

## Connections

- Developer → Web Dashboard: uses (evidence: `README.md`)
- Web Dashboard → API Client: requests data (evidence: `frontend/src/services/api.ts`)
- API Client → Review Routes: calls review API (evidence: `frontend/src/services/api.ts`)
- Review Routes → Authentication: authenticates (evidence: `api/routes/reviews.py`)
- Review Routes → Review Processing: creates and processes (evidence: `api/routes/reviews.py`)
- Review Processing → Ingestion Pipeline: ingests profile sources (evidence: `core/services/review_service.py`)
- Ingestion Pipeline → Source Parsers: parses sources (evidence: `ingestion/pipeline.py`)
- Ingestion Pipeline → Chunking Strategies: chunks content (evidence: `ingestion/pipeline.py`)
- Ingestion Pipeline → Embedding Processor: processes chunks (evidence: `ingestion/pipeline.py`)
- Review Processing → Agent Orchestrator: runs analysis (evidence: `core/services/review_service.py`)
- Agent Orchestrator → Analysis Tools: orchestrates tools (evidence: `README.md`)
- Review Processing → Hybrid Retrieval: retrieves evidence (evidence: `core/services/review_service.py`)
- Review Processing → Review Generation: generates feedback (evidence: `core/services/review_service.py`)
- Review Generation → Hybrid Retrieval: uses retrieved context (evidence: `README.md`)
- Review Processing → Safety Guardrails: checks output (evidence: `core/services/review_service.py`)
- Quality Evaluation → Review Generation: evaluates output (evidence: `README.md`)
- Review Processing → Profile Records: loads profile (evidence: `core/services/review_service.py`)
- Review Processing → Ingested Sources: records sources (evidence: `core/services/review_service.py`)
- Review Processing → Review Records: stores results (evidence: `core/services/review_service.py`)
- Profile Service → Profile Records: manages profiles (evidence: `core/services/profile_service.py`)
- Profile Service → Ingested Sources: manages sources (evidence: `core/services/profile_service.py`)
- Profile Records → Relational Database: persists in (evidence: `core/models/profile.py`)
- Ingested Sources → Relational Database: persists in (evidence: `core/models/ingested_source.py`)
- Review Records → Relational Database: persists in (evidence: `core/models/review.py`)
- Embedding Processor → Vector Store: stores vectors
- API Client → Review Routes: polls review status
