# gamzekecibas/agents-practice architecture

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

- Interactive diagram: https://gitdiagram.com/gamzekecibas/agents-practice
- Repository: https://github.com/gamzekecibas/agents-practice

## Overview

AI Agents Practice is a collection of experimental learning projects, not one integrated application. Its main runnable workflows are a terminal LangGraph web-search agent and a CLI agentic-RAG experiment; the repository also documents notebook-based GPT, tokenization, and dataset practice. The graph preserves these separate projects and the RAG tool capabilities. Relationships are limited to calls shown in excerpts or capabilities stated in the README; unsampled notebook internals are not inferred.

Main entry points: [`002_agentic_rag/src/app.py`](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/app.py) (RAG Agent App), [`001_web_search_agent/agent_web_search/agent_web_search.py`](https://github.com/gamzekecibas/agents-practice/blob/main/001_web_search_agent/agent_web_search/agent_web_search.py) (Agent Workflow), [`002_agentic_rag/src/utils.py`](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/utils.py) (Ollama Setup), [`002_agentic_rag/src/retriever.py`](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/retriever.py) (Guest Query Agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["LLM Fundamentals"]
  node_llmpractice["GPT and Tokenization"]
end

subgraph group_websearch["Web Search Agent"]
  node_webentry["Terminal Runner"]
  node_webagent["Agent Workflow"]
  node_websearchtool["Web Search Tool"]
  node_webfinal["Final Answer Tool"]
end

subgraph group_ragapp["Agentic RAG"]
  node_ragapp["RAG Agent App<br/>[app.py]"]
  node_ragretriever["Guest Query Agent<br/>[retriever.py]"]
  node_guestindex[("Guest Vector Retrieval<br/>[tools.py]")]
  node_toolset["RAG Tool Set<br/>[tools.py]"]
  node_searchadapter["Search Adapter<br/>[tools.py]"]
  node_weatheradapter["Weather Adapter<br/>[tools.py]"]
  node_hubadapter["Hub Stats Adapter<br/>[tools.py]"]
  node_ragutils["Ollama Setup<br/>[utils.py]"]
end

node_learner(("Learner"))
node_webuser(("Terminal User"))
node_ddg{{"DuckDuckGo Search"}}
node_ollama{{"Ollama Runtime"}}
node_raguser(("CLI User"))
node_guestdata[("Guest Dataset")]
node_huggingface{{"Hugging Face Hub"}}

node_learner -->|"explores"| node_llmpractice
node_webuser -->|"runs"| node_webentry
node_webentry -->|"starts"| node_webagent
node_webagent -->|"dispatches"| node_websearchtool
node_websearchtool -->|"returns results"| node_webagent
node_webagent -->|"dispatches"| node_webfinal
node_websearchtool -->|"searches"| node_ddg
node_webagent -->|"queries model"| node_ollama
node_raguser -->|"submits query"| node_ragapp
node_ragapp -->|"registers tools"| node_toolset
node_ragapp -->|"ensures runtime"| node_ragutils
node_ragapp -->|"loads dataset"| node_guestdata
node_toolset -->|"retrieves guests"| node_guestindex
node_ragretriever -->|"queries guests"| node_guestindex
node_ragretriever -->|"ensures runtime"| node_ragutils
node_ragapp -->|"runs agent"| node_ollama
node_ragapp -->|"registers search"| node_searchadapter
node_ragapp -->|"registers weather"| node_weatheradapter
node_ragapp -->|"registers stats"| node_hubadapter
node_searchadapter -->|"searches"| node_ddg
node_hubadapter -->|"lists models"| node_huggingface
node_ragutils -->|"checks and pulls"| node_ollama

click node_llmpractice "https://github.com/gamzekecibas/agents-practice/tree/main/000_llm_practice"
click node_webentry "https://github.com/gamzekecibas/agents-practice/blob/main/001_web_search_agent/run_agent_web_search.py"
click node_webagent "https://github.com/gamzekecibas/agents-practice/blob/main/001_web_search_agent/agent_web_search/agent_web_search.py"
click node_websearchtool "https://github.com/gamzekecibas/agents-practice/blob/main/001_web_search_agent/agent_web_search/agent_web_search.py"
click node_webfinal "https://github.com/gamzekecibas/agents-practice/blob/main/001_web_search_agent/agent_web_search/agent_web_search.py"
click node_ragapp "https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/app.py"
click node_ragretriever "https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/retriever.py"
click node_guestindex "https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/tools.py"
click node_toolset "https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/tools.py"
click node_searchadapter "https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/tools.py"
click node_weatheradapter "https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/tools.py"
click node_hubadapter "https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/tools.py"
click node_ragutils "https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/utils.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_llmpractice,node_webuser,node_raguser toneBlue
class node_webentry,node_webagent,node_websearchtool,node_webfinal,node_guestdata toneAmber
class node_ragapp,node_ragretriever,node_guestindex,node_toolset,node_searchadapter,node_weatheradapter,node_hubadapter,node_ragutils toneMint
class node_learner,node_ddg,node_ollama,node_huggingface toneIndigo
```

## Components

### LLM Fundamentals

- [GPT and Tokenization](https://github.com/gamzekecibas/agents-practice/tree/main/000_llm_practice): `000_llm_practice`

### Web Search Agent

- [Terminal Runner](https://github.com/gamzekecibas/agents-practice/blob/main/001_web_search_agent/run_agent_web_search.py): `001_web_search_agent/run_agent_web_search.py`
- [Agent Workflow](https://github.com/gamzekecibas/agents-practice/blob/main/001_web_search_agent/agent_web_search/agent_web_search.py): `001_web_search_agent/agent_web_search/agent_web_search.py`
- [Web Search Tool](https://github.com/gamzekecibas/agents-practice/blob/main/001_web_search_agent/agent_web_search/agent_web_search.py): `001_web_search_agent/agent_web_search/agent_web_search.py`
- [Final Answer Tool](https://github.com/gamzekecibas/agents-practice/blob/main/001_web_search_agent/agent_web_search/agent_web_search.py): `001_web_search_agent/agent_web_search/agent_web_search.py`

### Agentic RAG

- [RAG Agent App](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/app.py): `002_agentic_rag/src/app.py`
- [Guest Query Agent](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/retriever.py): `002_agentic_rag/src/retriever.py`
- [Guest Vector Retrieval](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/tools.py): `002_agentic_rag/src/tools.py`
- [RAG Tool Set](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/tools.py): `002_agentic_rag/src/tools.py`
- [Search Adapter](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/tools.py): `002_agentic_rag/src/tools.py`
- [Weather Adapter](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/tools.py): `002_agentic_rag/src/tools.py`
- [Hub Stats Adapter](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/tools.py): `002_agentic_rag/src/tools.py`
- [Ollama Setup](https://github.com/gamzekecibas/agents-practice/blob/main/002_agentic_rag/src/utils.py): `002_agentic_rag/src/utils.py`

### Other components

- **Learner**
- **Terminal User**
- **DuckDuckGo Search**
- **Ollama Runtime**
- **CLI User**
- **Guest Dataset**
- **Hugging Face Hub**

## Connections

- Learner → GPT and Tokenization: explores (evidence: `README.md`)
- Terminal User → Terminal Runner: runs (evidence: `README.md`)
- Terminal Runner → Agent Workflow: starts (evidence: `001_web_search_agent/run_agent_web_search.py`)
- Agent Workflow → Web Search Tool: dispatches (evidence: `001_web_search_agent/agent_web_search/agent_web_search.py`)
- Web Search Tool → Agent Workflow: returns results (evidence: `001_web_search_agent/agent_web_search/agent_web_search.py`)
- Agent Workflow → Final Answer Tool: dispatches (evidence: `001_web_search_agent/agent_web_search/agent_web_search.py`)
- Web Search Tool → DuckDuckGo Search: searches (evidence: `001_web_search_agent/agent_web_search/agent_web_search.py`)
- Agent Workflow → Ollama Runtime: queries model (evidence: `001_web_search_agent/agent_web_search/agent_web_search.py`)
- CLI User → RAG Agent App: submits query (evidence: `README.md`)
- RAG Agent App → RAG Tool Set: registers tools (evidence: `002_agentic_rag/src/app.py`)
- RAG Agent App → Ollama Setup: ensures runtime (evidence: `002_agentic_rag/src/app.py`)
- RAG Agent App → Guest Dataset: loads dataset (evidence: `002_agentic_rag/src/app.py`)
- RAG Tool Set → Guest Vector Retrieval: retrieves guests (evidence: `002_agentic_rag/src/tools.py`)
- Guest Query Agent → Guest Vector Retrieval: queries guests (evidence: `002_agentic_rag/src/retriever.py`)
- Guest Query Agent → Ollama Setup: ensures runtime (evidence: `002_agentic_rag/src/retriever.py`)
- RAG Agent App → Ollama Runtime: runs agent (evidence: `002_agentic_rag/src/app.py`)
- RAG Agent App → Search Adapter: registers search (evidence: `002_agentic_rag/src/app.py`)
- RAG Agent App → Weather Adapter: registers weather (evidence: `002_agentic_rag/src/app.py`)
- RAG Agent App → Hub Stats Adapter: registers stats (evidence: `002_agentic_rag/src/app.py`)
- Search Adapter → DuckDuckGo Search: searches (evidence: `002_agentic_rag/src/tools.py`)
- Hub Stats Adapter → Hugging Face Hub: lists models (evidence: `002_agentic_rag/src/tools.py`)
- Ollama Setup → Ollama Runtime: checks and pulls (evidence: `002_agentic_rag/src/utils.py`)
