# siddhant-goswami/100x-llm architecture

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

- Interactive diagram: https://gitdiagram.com/siddhant-goswami/100x-llm
- Repository: https://github.com/siddhant-goswami/100x-llm

## Overview

This repository is a learning guide and collection of independent LLM and agent implementations, not one application with a shared runtime. A learner selects an example and follows its pattern: provide a prompt, query, or task; invoke a model, workflow, retrieval system, or agent; and inspect the generated response or artifact. The graph preserves the README’s major capability areas and the sampled trip-planning, job-posting, routing, and authentication paths. Many example implementations were not sampled, so their internal calls are not inferred.

Main entry points: [`agents/trip_planner/trip_agents.py`](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/trip_agents.py) (Trip agents), [`agents/trip_planner/main.py`](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/main.py) (Trip planner entry), [`agents/job-posting/main.py`](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/job-posting/main.py) (Job-posting entry), [`llm_workflows/router_workflow.py`](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/router_workflow.py) (Query routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_agents["AI agents"]
  node_trip_entry["Trip planner entry<br/>[main.py]"]
  node_trip_agents["Trip agents<br/>[trip_agents.py]"]
  node_trip_tasks["Trip tasks<br/>[trip_tasks.py]"]
  node_search_tool["Web search<br/>[search_tools.py]"]
  node_browser_tool["Page browsing<br/>[browser_tools.py]"]
  node_calculator_tool["Trip calculations"]
  node_job_entry["Job-posting entry<br/>[main.py]"]
  node_job_agents["Job-posting agents<br/>[agents.py]"]
  node_job_tasks["Job-posting tasks<br/>[tasks.py]"]
  node_react_patterns["ReAct patterns"]
  node_reflection["Reflection agent<br/>[reflection.py]"]
  node_research_agent["Research agents"]
  node_evaluator["Evaluator-optimizer"]
end

subgraph group_workflows["LLM workflows"]
  node_workflow_examples["Prompt chaining<br/>[prompt_chaining.py]"]
  node_workflow_router["Query routing<br/>[router_workflow.py]"]
  node_workflow_parallel["Parallel analysis"]
  node_workflow_review["Code review<br/>[code_review.py]"]
  node_workflow_llm["Workflow LLM helper<br/>[utils.py]"]
end

subgraph group_rag["RAG systems"]
  node_rag_basic["Basic document search"]
  node_rag_llama["LlamaIndex RAG"]
  node_rag_custom["Custom retrieval"]
  node_rag_notion["Notion data loader<br/>[streamlit_app.py]"]
  node_rag_vectorstore[("Supabase vector store")]
end

subgraph group_applications["Full-stack AI"]
  node_api_app["FastAPI example<br/>[app.py]"]
  node_api_examples["API examples"]
  node_crm_app["AI CRM<br/>[main.py]"]
  node_crm_ui["CRM interface<br/>[ui.py]"]
  node_auth_routes["Auth routes<br/>[main.py]"]
  node_auth_utils["Token verification<br/>[utils.py]"]
  node_auth_config["Auth configuration<br/>[config.py]"]
end

subgraph group_integrations["Model and tool integrations"]
  node_tool_calling["LLM tool calling"]
  node_huggingface["Hugging Face models"]
  node_chat_completions["Chat completions"]
end

node_learner(("Learner / caller"))

node_learner -->|"provides trip details"| node_trip_entry
node_trip_entry -->|"creates agents"| node_trip_agents
node_trip_entry -->|"creates tasks"| node_trip_tasks
node_trip_agents -->|"registers search"| node_search_tool
node_trip_agents -->|"registers browsing"| node_browser_tool
node_trip_agents -->|"registers calculation"| node_calculator_tool
node_learner -->|"provides hiring context"| node_job_entry
node_job_entry -->|"creates agents"| node_job_agents
node_job_entry -->|"creates tasks"| node_job_tasks
node_learner -->|"explores reasoning patterns"| node_react_patterns
node_learner -->|"explores self-evaluation"| node_reflection
node_learner -->|"explores research agents"| node_research_agent
node_learner -.->|"runs evaluation example"| node_evaluator
node_learner -->|"runs chained tasks"| node_workflow_examples
node_learner -->|"routes queries"| node_workflow_router
node_workflow_router -->|"requests completions"| node_workflow_llm
node_learner -->|"analyzes reviews"| node_workflow_parallel
node_workflow_parallel -->|"requests completions"| node_workflow_llm
node_learner -->|"reviews code"| node_workflow_review
node_learner -->|"searches documents"| node_rag_basic
node_learner -->|"uses indexed data"| node_rag_llama
node_learner -->|"builds retrieval"| node_rag_custom
node_learner -.->|"loads Notion data"| node_rag_notion
node_rag_custom -.->|"stores vectors"| node_rag_vectorstore
node_learner -->|"uses AI API"| node_api_app
node_learner -->|"explores API patterns"| node_api_examples
node_learner -->|"uses CRM app"| node_crm_app
node_learner -.->|"uses app interface"| node_crm_ui
node_learner -->|"authenticates requests"| node_auth_routes
node_auth_routes -->|"verifies tokens"| node_auth_utils
node_auth_utils -->|"reads settings"| node_auth_config
node_learner -->|"connects external tools"| node_tool_calling
node_learner -->|"runs open models"| node_huggingface
node_learner -.->|"tries chat APIs"| node_chat_completions

click node_trip_entry "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/main.py"
click node_trip_agents "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/trip_agents.py"
click node_trip_tasks "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/trip_tasks.py"
click node_search_tool "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/tools/search_tools.py"
click node_browser_tool "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/tools/browser_tools.py"
click node_calculator_tool "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/tools/calculator_tools.py"
click node_job_entry "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/job-posting/main.py"
click node_job_agents "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/job-posting/agents.py"
click node_job_tasks "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/job-posting/tasks.py"
click node_react_patterns "https://github.com/siddhant-goswami/100x-llm/tree/main/agents/agentic_patterns/react"
click node_reflection "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/agentic_patterns/reflection/reflection.py"
click node_research_agent "https://github.com/siddhant-goswami/100x-llm/tree/main/agents/agentic_patterns/research_agent"
click node_evaluator "https://github.com/siddhant-goswami/100x-llm/blob/main/agents/agentic_patterns/evaluator_optimizer_agent/evaluator_optimizer.py"
click node_workflow_examples "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/prompt_chaining.py"
click node_workflow_router "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/router_workflow.py"
click node_workflow_parallel "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/product_review_parallelization.py"
click node_workflow_review "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/code_review.py"
click node_workflow_llm "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/utils.py"
click node_rag_basic "https://github.com/siddhant-goswami/100x-llm/blob/main/rag/level1_openai_file_search.py"
click node_rag_llama "https://github.com/siddhant-goswami/100x-llm/blob/main/rag/level2_llamaindex.py"
click node_rag_custom "https://github.com/siddhant-goswami/100x-llm/blob/main/rag_advanced/level3_rag_from_scratch.py"
click node_rag_notion "https://github.com/siddhant-goswami/100x-llm/blob/main/rag_advanced/loaders/notion/streamlit_app.py"
click node_rag_vectorstore "https://github.com/siddhant-goswami/100x-llm/blob/main/rag_advanced/supabase_vectorstore.py"
click node_api_app "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/api/app.py"
click node_api_examples "https://github.com/siddhant-goswami/100x-llm/tree/main/llm_full_stack/api"
click node_crm_app "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/ai_crm/main.py"
click node_crm_ui "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/ai_crm/ui.py"
click node_auth_routes "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/auth/main.py"
click node_auth_utils "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/auth/utils.py"
click node_auth_config "https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/auth/config.py"
click node_tool_calling "https://github.com/siddhant-goswami/100x-llm/tree/main/tool_calling"
click node_huggingface "https://github.com/siddhant-goswami/100x-llm/tree/main/huggingface"
click node_chat_completions "https://github.com/siddhant-goswami/100x-llm/tree/main/llm_full_stack/chat_completions"

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_trip_entry,node_trip_agents,node_trip_tasks,node_search_tool,node_browser_tool,node_calculator_tool,node_job_entry,node_job_agents,node_job_tasks,node_react_patterns,node_reflection,node_research_agent,node_evaluator toneBlue
class node_workflow_examples,node_workflow_router,node_workflow_parallel,node_workflow_review,node_workflow_llm toneAmber
class node_rag_basic,node_rag_llama,node_rag_custom,node_rag_notion,node_rag_vectorstore toneMint
class node_api_app,node_api_examples,node_crm_app,node_crm_ui,node_auth_routes,node_auth_utils,node_auth_config toneRose
class node_tool_calling,node_huggingface,node_chat_completions,node_learner toneIndigo
```

## Components

### AI agents

- [Trip planner entry](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/main.py): `agents/trip_planner/main.py`
- [Trip agents](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/trip_agents.py): `agents/trip_planner/trip_agents.py`
- [Trip tasks](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/trip_tasks.py): `agents/trip_planner/trip_tasks.py`
- [Web search](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/tools/search_tools.py): `agents/trip_planner/tools/search_tools.py`
- [Page browsing](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/tools/browser_tools.py): `agents/trip_planner/tools/browser_tools.py`
- [Trip calculations](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/trip_planner/tools/calculator_tools.py): `agents/trip_planner/tools/calculator_tools.py`
- [Job-posting entry](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/job-posting/main.py): `agents/job-posting/main.py`
- [Job-posting agents](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/job-posting/agents.py): `agents/job-posting/agents.py`
- [Job-posting tasks](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/job-posting/tasks.py): `agents/job-posting/tasks.py`
- [ReAct patterns](https://github.com/siddhant-goswami/100x-llm/tree/main/agents/agentic_patterns/react): `agents/agentic_patterns/react`
- [Reflection agent](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/agentic_patterns/reflection/reflection.py): `agents/agentic_patterns/reflection/reflection.py`
- [Research agents](https://github.com/siddhant-goswami/100x-llm/tree/main/agents/agentic_patterns/research_agent): `agents/agentic_patterns/research_agent`
- [Evaluator-optimizer](https://github.com/siddhant-goswami/100x-llm/blob/main/agents/agentic_patterns/evaluator_optimizer_agent/evaluator_optimizer.py): `agents/agentic_patterns/evaluator_optimizer_agent/evaluator_optimizer.py`

### LLM workflows

- [Prompt chaining](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/prompt_chaining.py): `llm_workflows/prompt_chaining.py`
- [Query routing](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/router_workflow.py): `llm_workflows/router_workflow.py`
- [Parallel analysis](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/product_review_parallelization.py): `llm_workflows/product_review_parallelization.py`
- [Code review](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/code_review.py): `llm_workflows/code_review.py`
- [Workflow LLM helper](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_workflows/utils.py): `llm_workflows/utils.py`

### RAG systems

- [Basic document search](https://github.com/siddhant-goswami/100x-llm/blob/main/rag/level1_openai_file_search.py): `rag/level1_openai_file_search.py`
- [LlamaIndex RAG](https://github.com/siddhant-goswami/100x-llm/blob/main/rag/level2_llamaindex.py): `rag/level2_llamaindex.py`
- [Custom retrieval](https://github.com/siddhant-goswami/100x-llm/blob/main/rag_advanced/level3_rag_from_scratch.py): `rag_advanced/level3_rag_from_scratch.py`
- [Notion data loader](https://github.com/siddhant-goswami/100x-llm/blob/main/rag_advanced/loaders/notion/streamlit_app.py): `rag_advanced/loaders/notion/streamlit_app.py`
- [Supabase vector store](https://github.com/siddhant-goswami/100x-llm/blob/main/rag_advanced/supabase_vectorstore.py): `rag_advanced/supabase_vectorstore.py`

### Full-stack AI

- [FastAPI example](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/api/app.py): `llm_full_stack/api/app.py`
- [API examples](https://github.com/siddhant-goswami/100x-llm/tree/main/llm_full_stack/api): `llm_full_stack/api`
- [AI CRM](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/ai_crm/main.py): `llm_full_stack/ai_crm/main.py`
- [CRM interface](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/ai_crm/ui.py): `llm_full_stack/ai_crm/ui.py`
- [Auth routes](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/auth/main.py): `llm_full_stack/auth/main.py`
- [Token verification](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/auth/utils.py): `llm_full_stack/auth/utils.py`
- [Auth configuration](https://github.com/siddhant-goswami/100x-llm/blob/main/llm_full_stack/auth/config.py): `llm_full_stack/auth/config.py`

### Model and tool integrations

- [LLM tool calling](https://github.com/siddhant-goswami/100x-llm/tree/main/tool_calling): `tool_calling`
- [Hugging Face models](https://github.com/siddhant-goswami/100x-llm/tree/main/huggingface): `huggingface`
- [Chat completions](https://github.com/siddhant-goswami/100x-llm/tree/main/llm_full_stack/chat_completions): `llm_full_stack/chat_completions`

### Other components

- **Learner / caller**

## Connections

- Learner / caller → Trip planner entry: provides trip details
- Trip planner entry → Trip agents: creates agents (evidence: `agents/trip_planner/main.py`)
- Trip planner entry → Trip tasks: creates tasks (evidence: `agents/trip_planner/main.py`)
- Trip agents → Web search: registers search (evidence: `agents/trip_planner/trip_agents.py`)
- Trip agents → Page browsing: registers browsing (evidence: `agents/trip_planner/trip_agents.py`)
- Trip agents → Trip calculations: registers calculation (evidence: `agents/trip_planner/trip_agents.py`)
- Learner / caller → Job-posting entry: provides hiring context (evidence: `agents/job-posting/main.py`)
- Job-posting entry → Job-posting agents: creates agents (evidence: `agents/job-posting/main.py`)
- Job-posting entry → Job-posting tasks: creates tasks (evidence: `agents/job-posting/main.py`)
- Learner / caller → ReAct patterns: explores reasoning patterns
- Learner / caller → Reflection agent: explores self-evaluation
- Learner / caller → Research agents: explores research agents
- Learner / caller → Evaluator-optimizer: runs evaluation example
- Learner / caller → Prompt chaining: runs chained tasks
- Learner / caller → Query routing: routes queries
- Query routing → Workflow LLM helper: requests completions (evidence: `llm_workflows/router_workflow.py`)
- Learner / caller → Parallel analysis: analyzes reviews
- Parallel analysis → Workflow LLM helper: requests completions (evidence: `llm_workflows/product_review_parallelization.py`)
- Learner / caller → Code review: reviews code
- Learner / caller → Basic document search: searches documents
- Learner / caller → LlamaIndex RAG: uses indexed data
- Learner / caller → Custom retrieval: builds retrieval
- Learner / caller → Notion data loader: loads Notion data
- Custom retrieval → Supabase vector store: stores vectors
- Learner / caller → FastAPI example: uses AI API
- Learner / caller → API examples: explores API patterns
- Learner / caller → AI CRM: uses CRM app
- Learner / caller → CRM interface: uses app interface
- Learner / caller → Auth routes: authenticates requests
- Auth routes → Token verification: verifies tokens (evidence: `llm_full_stack/auth/main.py`)
- Token verification → Auth configuration: reads settings (evidence: `llm_full_stack/auth/utils.py`)
- Learner / caller → LLM tool calling: connects external tools
- Learner / caller → Hugging Face models: runs open models
- Learner / caller → Chat completions: tries chat APIs
