# jsathish1990/prompt-engineering-and-generative-ai-fundamentals architecture

> Architecture diagram of the GitHub repository jsathish1990/prompt-engineering-and-generative-ai-fundamentals, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals
- Repository: https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals

## Overview

This repository is a hands-on course, not a software package: learners run Colab notebooks to explore prompting, retrieval-augmented generation, fine-tuning, and guardrails. The principal workflow is to choose a lesson, run its notebook, and observe or evaluate model behavior. The README identifies lesson capabilities and some data inputs, but no notebook source excerpts were provided, so internal call sequences and notebook-specific service connections are not inferred.

Main entry points: [`Section 2 - Retrieval Augmented Generation/Retrieval_Augmented_Generation_1.ipynb`](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/Retrieval_Augmented_Generation_1.ipynb) (CSV question answering), [`Section 3 - LLM Fine-tuning/Fine_tuning_an_LLM_.ipynb`](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%203%20-%20LLM%20Fine-tuning/Fine_tuning_an_LLM_.ipynb) (Fine-tuning workflow), [`Section 1 - Prompt Engineering Fundamentals/Set_up_Gemini+(1).ipynb`](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%201%20-%20Prompt%20Engineering%20Fundamentals/Set_up_Gemini%2B(1).ipynb) (Gemini prompting), [`Section 1 - Prompt Engineering Fundamentals/Set_up_OpenAI.ipynb`](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%201%20-%20Prompt%20Engineering%20Fundamentals/Set_up_OpenAI.ipynb) (OpenAI setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prompting["Prompting fundamentals"]
  node_gemini_setup["Gemini prompting"]
  node_openai_setup["OpenAI setup"]
  node_tot_sudoku["Tree-of-Thought Sudoku"]
end

subgraph group_rag["Retrieval and evaluation"]
  node_rag_csv["CSV question answering"]
  node_arxiv_rag["Arxiv retrieval"]
  node_pdf_ragas["PDF RAG evaluation"]
  node_langsmith_ragas["LangSmith evaluation"]
  node_gemini_docqa["Gemini document search"]
  node_qa_csv[("QA dataset<br/>[data_QA_.csv]")]
end

subgraph group_finetune["Fine-tuning"]
  node_compare_tune["Prompting comparison"]
  node_fine_tune["Fine-tuning workflow"]
end

subgraph group_guardrails["Guardrails"]
  node_topical_guardrail["Topical guardrail"]
  node_extract_guardrail["Text extraction"]
  node_structured_guardrail["Structured generation"]
  node_chat_guardrail["Chat model guardrails"]
end

node_learner(("Learner"))
node_colab["Google Colab"]
node_huggingface_data[("Hugging Face dataset")]

node_learner -->|"runs lesson"| node_gemini_setup
node_learner -->|"runs lesson"| node_openai_setup
node_learner -->|"runs lesson"| node_tot_sudoku
node_learner -->|"runs lesson"| node_rag_csv
node_learner -->|"runs lesson"| node_arxiv_rag
node_learner -->|"runs lesson"| node_pdf_ragas
node_learner -->|"runs lesson"| node_langsmith_ragas
node_learner -->|"runs lesson"| node_gemini_docqa
node_learner -->|"runs lesson"| node_compare_tune
node_learner -->|"runs lesson"| node_fine_tune
node_learner -->|"runs lesson"| node_topical_guardrail
node_learner -->|"runs lesson"| node_extract_guardrail
node_learner -->|"runs lesson"| node_structured_guardrail
node_learner -->|"runs lesson"| node_chat_guardrail
node_colab -->|"hosts notebook"| node_gemini_setup
node_colab -->|"hosts notebook"| node_openai_setup
node_colab -->|"hosts notebook"| node_tot_sudoku
node_colab -->|"hosts notebook"| node_rag_csv
node_colab -->|"hosts notebook"| node_arxiv_rag
node_colab -->|"hosts notebook"| node_pdf_ragas
node_colab -->|"hosts notebook"| node_langsmith_ragas
node_colab -->|"hosts notebook"| node_gemini_docqa
node_colab -->|"hosts notebook"| node_compare_tune
node_colab -->|"hosts notebook"| node_fine_tune
node_colab -->|"hosts notebook"| node_topical_guardrail
node_colab -->|"hosts notebook"| node_extract_guardrail
node_colab -->|"hosts notebook"| node_structured_guardrail
node_colab -->|"hosts notebook"| node_chat_guardrail
node_rag_csv -->|"reads dataset"| node_qa_csv
node_fine_tune -->|"loads dataset"| node_huggingface_data

click node_gemini_setup "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%201%20-%20Prompt%20Engineering%20Fundamentals/Set_up_Gemini%2B(1).ipynb"
click node_openai_setup "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%201%20-%20Prompt%20Engineering%20Fundamentals/Set_up_OpenAI.ipynb"
click node_tot_sudoku "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%201%20-%20Prompt%20Engineering%20Fundamentals/4x4_example_OpenAI.ipynb"
click node_rag_csv "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/Retrieval_Augmented_Generation_1.ipynb"
click node_arxiv_rag "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/Arxiv_Loader_RAG_.ipynb"
click node_pdf_ragas "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/PyPDF_RAG_with_RAGAS.ipynb"
click node_langsmith_ragas "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/RAGAS_langsmith.ipynb"
click node_gemini_docqa "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/Document_Q_A_Gemini.ipynb"
click node_qa_csv "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/data_QA_.csv"
click node_compare_tune "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%203%20-%20LLM%20Fine-tuning/Finetuning_vs_Prompting.ipynb"
click node_fine_tune "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%203%20-%20LLM%20Fine-tuning/Fine_tuning_an_LLM_.ipynb"
click node_topical_guardrail "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%204%20-%20Guardrails%20for%20LLMs/Topical_guardrail.ipynb"
click node_extract_guardrail "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%204%20-%20Guardrails%20for%20LLMs/GuardrailsAI_extracting_text.ipynb"
click node_structured_guardrail "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%204%20-%20Guardrails%20for%20LLMs/GuardrailsAI_generating_structured_data.ipynb"
click node_chat_guardrail "https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%204%20-%20Guardrails%20for%20LLMs/Guardrails_with_ChatModel.ipynb"

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_gemini_setup,node_openai_setup,node_tot_sudoku toneBlue
class node_rag_csv,node_arxiv_rag,node_pdf_ragas,node_langsmith_ragas,node_gemini_docqa,node_qa_csv,node_huggingface_data toneAmber
class node_compare_tune,node_fine_tune toneMint
class node_topical_guardrail,node_extract_guardrail,node_structured_guardrail,node_chat_guardrail toneRose
class node_learner,node_colab toneIndigo
```

## Components

### Prompting fundamentals

- [Gemini prompting](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%201%20-%20Prompt%20Engineering%20Fundamentals/Set_up_Gemini%2B(1).ipynb): `Section 1 - Prompt Engineering Fundamentals/Set_up_Gemini+(1).ipynb`
- [OpenAI setup](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%201%20-%20Prompt%20Engineering%20Fundamentals/Set_up_OpenAI.ipynb): `Section 1 - Prompt Engineering Fundamentals/Set_up_OpenAI.ipynb`
- [Tree-of-Thought Sudoku](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%201%20-%20Prompt%20Engineering%20Fundamentals/4x4_example_OpenAI.ipynb): `Section 1 - Prompt Engineering Fundamentals/4x4_example_OpenAI.ipynb`

### Retrieval and evaluation

- [CSV question answering](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/Retrieval_Augmented_Generation_1.ipynb): `Section 2 - Retrieval Augmented Generation/Retrieval_Augmented_Generation_1.ipynb`
- [Arxiv retrieval](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/Arxiv_Loader_RAG_.ipynb): `Section 2 - Retrieval Augmented Generation/Arxiv_Loader_RAG_.ipynb`
- [PDF RAG evaluation](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/PyPDF_RAG_with_RAGAS.ipynb): `Section 2 - Retrieval Augmented Generation/PyPDF_RAG_with_RAGAS.ipynb`
- [LangSmith evaluation](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/RAGAS_langsmith.ipynb): `Section 2 - Retrieval Augmented Generation/RAGAS_langsmith.ipynb`
- [Gemini document search](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/Document_Q_A_Gemini.ipynb): `Section 2 - Retrieval Augmented Generation/Document_Q_A_Gemini.ipynb`
- [QA dataset](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%202%20-%20Retrieval%20Augmented%20Generation/data_QA_.csv): `Section 2 - Retrieval Augmented Generation/data_QA_.csv`

### Fine-tuning

- [Prompting comparison](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%203%20-%20LLM%20Fine-tuning/Finetuning_vs_Prompting.ipynb): `Section 3 - LLM Fine-tuning/Finetuning_vs_Prompting.ipynb`
- [Fine-tuning workflow](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%203%20-%20LLM%20Fine-tuning/Fine_tuning_an_LLM_.ipynb): `Section 3 - LLM Fine-tuning/Fine_tuning_an_LLM_.ipynb`

### Guardrails

- [Topical guardrail](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%204%20-%20Guardrails%20for%20LLMs/Topical_guardrail.ipynb): `Section 4 - Guardrails for LLMs/Topical_guardrail.ipynb`
- [Text extraction](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%204%20-%20Guardrails%20for%20LLMs/GuardrailsAI_extracting_text.ipynb): `Section 4 - Guardrails for LLMs/GuardrailsAI_extracting_text.ipynb`
- [Structured generation](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%204%20-%20Guardrails%20for%20LLMs/GuardrailsAI_generating_structured_data.ipynb): `Section 4 - Guardrails for LLMs/GuardrailsAI_generating_structured_data.ipynb`
- [Chat model guardrails](https://github.com/jsathish1990/prompt-engineering-and-generative-ai-fundamentals/blob/main/Section%204%20-%20Guardrails%20for%20LLMs/Guardrails_with_ChatModel.ipynb): `Section 4 - Guardrails for LLMs/Guardrails_with_ChatModel.ipynb`

### Other components

- **Learner**
- **Google Colab**
- **Hugging Face dataset**

## Connections

- Learner → Gemini prompting: runs lesson (evidence: `README.md`)
- Learner → OpenAI setup: runs lesson (evidence: `README.md`)
- Learner → Tree-of-Thought Sudoku: runs lesson (evidence: `README.md`)
- Learner → CSV question answering: runs lesson (evidence: `README.md`)
- Learner → Arxiv retrieval: runs lesson (evidence: `README.md`)
- Learner → PDF RAG evaluation: runs lesson (evidence: `README.md`)
- Learner → LangSmith evaluation: runs lesson (evidence: `README.md`)
- Learner → Gemini document search: runs lesson (evidence: `README.md`)
- Learner → Prompting comparison: runs lesson (evidence: `README.md`)
- Learner → Fine-tuning workflow: runs lesson (evidence: `README.md`)
- Learner → Topical guardrail: runs lesson (evidence: `README.md`)
- Learner → Text extraction: runs lesson (evidence: `README.md`)
- Learner → Structured generation: runs lesson (evidence: `README.md`)
- Learner → Chat model guardrails: runs lesson (evidence: `README.md`)
- Google Colab → Gemini prompting: hosts notebook (evidence: `README.md`)
- Google Colab → OpenAI setup: hosts notebook (evidence: `README.md`)
- Google Colab → Tree-of-Thought Sudoku: hosts notebook (evidence: `README.md`)
- Google Colab → CSV question answering: hosts notebook (evidence: `README.md`)
- Google Colab → Arxiv retrieval: hosts notebook (evidence: `README.md`)
- Google Colab → PDF RAG evaluation: hosts notebook (evidence: `README.md`)
- Google Colab → LangSmith evaluation: hosts notebook (evidence: `README.md`)
- Google Colab → Gemini document search: hosts notebook (evidence: `README.md`)
- Google Colab → Prompting comparison: hosts notebook (evidence: `README.md`)
- Google Colab → Fine-tuning workflow: hosts notebook (evidence: `README.md`)
- Google Colab → Topical guardrail: hosts notebook (evidence: `README.md`)
- Google Colab → Text extraction: hosts notebook (evidence: `README.md`)
- Google Colab → Structured generation: hosts notebook (evidence: `README.md`)
- Google Colab → Chat model guardrails: hosts notebook (evidence: `README.md`)
- CSV question answering → QA dataset: reads dataset (evidence: `README.md`)
- Fine-tuning workflow → Hugging Face dataset: loads dataset (evidence: `README.md`)
