# andkret/cookbook architecture

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

- Interactive diagram: https://gitdiagram.com/andkret/cookbook
- Repository: https://github.com/andkret/cookbook

## Overview

The repository is primarily an educational Data Engineering Cookbook: readers navigate from foundational skills through advanced topics, practical learning resources, and reference material. It also includes a standalone GenAI RAG example with JSON and PDF ingestion scripts and a query script. The README establishes the cookbook’s major sections; sampled source shows the example scripts’ processing steps. The query script imports an absent `index_raw` module, so its backend connection is not verified.

Main entry points: [`Code Examples/GenAI-RAG/index.py`](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/index.py) (JSON ingestion), [`Code Examples/GenAI-RAG/cvpipeline.py`](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/cvpipeline.py) (CV ingestion), [`Code Examples/GenAI-RAG/query.py`](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/query.py) (RAG query), [`Code Examples/GenAI-RAG/conversations.json`](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/conversations.json) (Conversation data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cookbook["Cookbook chapters"]
  node_intro["Introduction<br/>[01-Introduction.md]"]
  node_basic["Basic skills<br/>[02-BasicSkills.md]"]
  node_advanced["Advanced skills"]
  node_cloud["Cloud practices"]
end

subgraph group_learning["Learning resources"]
  node_courses["Hands-on courses"]
  node_cases["Case studies<br/>[05-CaseStudies.md]"]
  node_sources["Data sources<br/>[07-DataSources.md]"]
  node_interviews["Interview questions"]
  node_books["Books and courses"]
  node_updates["Updates<br/>[10-Updates.md]"]
  node_readme_template["Project README template<br/>[template-readme.md]"]
end

subgraph group_rag["GenAI RAG example"]
  node_json["Conversation data<br/>[conversations.json]"]
  node_json_ingest["JSON ingestion<br/>[index.py]"]
  node_embedding["Mistral embeddings<br/>[index.py]"]
  node_vector_store[("Elasticsearch store<br/>[index.py]")]
  node_pdf["CV PDF"]
  node_cv_ingest["CV ingestion<br/>[cvpipeline.py]"]
  node_ollama_chat["Ollama chat"]
  node_rag_query["RAG query<br/>[query.py]"]
  node_rag_reader(("Question asker"))
end

node_reader(("Reader"))

node_reader -->|"reads"| node_intro
node_reader -->|"reads"| node_basic
node_reader -->|"reads"| node_advanced
node_reader -->|"uses"| node_courses
node_reader -->|"reads"| node_cases
node_reader -->|"reads"| node_cloud
node_reader -->|"uses"| node_sources
node_reader -->|"studies"| node_interviews
node_reader -->|"uses"| node_books
node_reader -->|"checks"| node_updates
node_reader -->|"uses"| node_readme_template
node_json -->|"loads"| node_json_ingest
node_json_ingest -->|"embeds chunks"| node_embedding
node_json_ingest -->|"writes vectors"| node_vector_store
node_pdf -->|"extracts text"| node_cv_ingest
node_cv_ingest -->|"prepares JSON"| node_ollama_chat
node_cv_ingest -->|"writes vectors"| node_vector_store
node_rag_reader -.->|"asks question"| node_rag_query
node_rag_query -->|"retrieves matches"| node_vector_store
node_rag_query -->|"generates answer"| node_ollama_chat

click node_intro "https://github.com/andkret/cookbook/blob/master/sections/01-Introduction.md"
click node_basic "https://github.com/andkret/cookbook/blob/master/sections/02-BasicSkills.md"
click node_advanced "https://github.com/andkret/cookbook/blob/master/sections/03-AdvancedSkills.md"
click node_courses "https://github.com/andkret/cookbook/blob/master/sections/04-HandsOnCourse.md"
click node_cases "https://github.com/andkret/cookbook/blob/master/sections/05-CaseStudies.md"
click node_cloud "https://github.com/andkret/cookbook/blob/master/sections/06-BestPracticesCloud.md"
click node_sources "https://github.com/andkret/cookbook/blob/master/sections/07-DataSources.md"
click node_interviews "https://github.com/andkret/cookbook/blob/master/sections/08-InterviewQuestions.md"
click node_books "https://github.com/andkret/cookbook/blob/master/sections/09-BooksAndCourses.md"
click node_updates "https://github.com/andkret/cookbook/blob/master/sections/10-Updates.md"
click node_readme_template "https://github.com/andkret/cookbook/blob/master/Code%20Examples/template-readme.md"
click node_json "https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/conversations.json"
click node_json_ingest "https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/index.py"
click node_embedding "https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/index.py"
click node_vector_store "https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/index.py"
click node_pdf "https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/Liam_McGivney_CV.pdf"
click node_cv_ingest "https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/cvpipeline.py"
click node_rag_query "https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/query.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_intro,node_basic,node_advanced,node_cloud toneBlue
class node_courses,node_cases,node_sources,node_interviews,node_books,node_updates,node_readme_template toneAmber
class node_json,node_json_ingest,node_embedding,node_vector_store,node_pdf,node_cv_ingest,node_ollama_chat,node_rag_query,node_rag_reader toneMint
class node_reader toneIndigo
```

## Components

### Cookbook chapters

- [Introduction](https://github.com/andkret/cookbook/blob/master/sections/01-Introduction.md): `sections/01-Introduction.md`
- [Basic skills](https://github.com/andkret/cookbook/blob/master/sections/02-BasicSkills.md): `sections/02-BasicSkills.md`
- [Advanced skills](https://github.com/andkret/cookbook/blob/master/sections/03-AdvancedSkills.md): `sections/03-AdvancedSkills.md`
- [Cloud practices](https://github.com/andkret/cookbook/blob/master/sections/06-BestPracticesCloud.md): `sections/06-BestPracticesCloud.md`

### Learning resources

- [Hands-on courses](https://github.com/andkret/cookbook/blob/master/sections/04-HandsOnCourse.md): `sections/04-HandsOnCourse.md`
- [Case studies](https://github.com/andkret/cookbook/blob/master/sections/05-CaseStudies.md): `sections/05-CaseStudies.md`
- [Data sources](https://github.com/andkret/cookbook/blob/master/sections/07-DataSources.md): `sections/07-DataSources.md`
- [Interview questions](https://github.com/andkret/cookbook/blob/master/sections/08-InterviewQuestions.md): `sections/08-InterviewQuestions.md`
- [Books and courses](https://github.com/andkret/cookbook/blob/master/sections/09-BooksAndCourses.md): `sections/09-BooksAndCourses.md`
- [Updates](https://github.com/andkret/cookbook/blob/master/sections/10-Updates.md): `sections/10-Updates.md`
- [Project README template](https://github.com/andkret/cookbook/blob/master/Code%20Examples/template-readme.md): `Code Examples/template-readme.md`

### GenAI RAG example

- [Conversation data](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/conversations.json): `Code Examples/GenAI-RAG/conversations.json`
- [JSON ingestion](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/index.py): `Code Examples/GenAI-RAG/index.py`
- [Mistral embeddings](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/index.py): `Code Examples/GenAI-RAG/index.py`
- [Elasticsearch store](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/index.py): `Code Examples/GenAI-RAG/index.py`
- [CV PDF](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/Liam_McGivney_CV.pdf): `Code Examples/GenAI-RAG/Liam_McGivney_CV.pdf`
- [CV ingestion](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/cvpipeline.py): `Code Examples/GenAI-RAG/cvpipeline.py`
- **Ollama chat**
- [RAG query](https://github.com/andkret/cookbook/blob/master/Code%20Examples/GenAI-RAG/query.py): `Code Examples/GenAI-RAG/query.py`
- **Question asker**

### Other components

- **Reader**

## Connections

- Reader → Introduction: reads (evidence: `README.md`)
- Reader → Basic skills: reads (evidence: `README.md`)
- Reader → Advanced skills: reads (evidence: `README.md`)
- Reader → Hands-on courses: uses (evidence: `README.md`)
- Reader → Case studies: reads (evidence: `README.md`)
- Reader → Cloud practices: reads (evidence: `README.md`)
- Reader → Data sources: uses (evidence: `README.md`)
- Reader → Interview questions: studies (evidence: `README.md`)
- Reader → Books and courses: uses (evidence: `README.md`)
- Reader → Updates: checks (evidence: `README.md`)
- Reader → Project README template: uses (evidence: `README.md`)
- Conversation data → JSON ingestion: loads (evidence: `Code Examples/GenAI-RAG/index.py`)
- JSON ingestion → Mistral embeddings: embeds chunks (evidence: `Code Examples/GenAI-RAG/index.py`)
- JSON ingestion → Elasticsearch store: writes vectors (evidence: `Code Examples/GenAI-RAG/index.py`)
- CV PDF → CV ingestion: extracts text (evidence: `Code Examples/GenAI-RAG/cvpipeline.py`)
- CV ingestion → Ollama chat: prepares JSON (evidence: `Code Examples/GenAI-RAG/cvpipeline.py`)
- CV ingestion → Elasticsearch store: writes vectors (evidence: `Code Examples/GenAI-RAG/cvpipeline.py`)
- Question asker → RAG query: asks question
- RAG query → Elasticsearch store: retrieves matches (evidence: `Code Examples/GenAI-RAG/query.py`)
- RAG query → Ollama chat: generates answer (evidence: `Code Examples/GenAI-RAG/query.py`)
