Skip to content

pankaj-kaushik/gen-ai-beginner-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

69 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Gen AI Beginner Projects

Welcome to Gen AI Beginner ProjectsπŸ‘‹ - a hands-on learning repository designed to help you understand the fundamentals of Generative AI by building real-world projects using Python and modern LLMs.

This repository focuses on practical implementation of concepts like:

  • Prompt Engineering
  • LLM APIs (like OpenAI API)
  • Embeddings
  • Vector Databases
  • RAG (Retrieval-Augmented Generation)
  • AI Agents

Instead of just learning theory, this repo emphasizes learning by building.

If you’ve ever wondered:

  • How does ChatGPT actually work?
  • How can I build my own AI-powered app?
  • How do companies use Generative AI in real products?

This repository is the practical answer to those questions.

🎯 Purpose of This Repository

This repository contains small, focused Gen AI projects, each living in its own folder, designed to:

  • πŸ“Œ To build strong foundational knowledge in Generative AI
  • πŸ› οΈ To create practical, portfolio-ready projects
  • πŸ“š To document experiments and learnings
  • πŸš€ To transition from beginner to intermediate level in Gen AI
  • πŸ’Ό To prepare for AI/ML/LLM-based roles
  • 🧠 To build intuition before production-grade systems

Each project is intentionally designed to focus on one or two core concepts to avoid overwhelming complexity.

⚠️ This repo is not production-ready.

🧠 What You’ll Learn from This Repo

By going through these projects, you will learn:

  • Prompt Engineering
    • Zero Shot, Few Shot, Chain-of-Thought Prompting
    • System vs User Prompts
    • Temperature, Top-p tuning
    • Output Structuring (JSON, Markdown)
  • Working with LLM APIs
    • Making API calls
    • Handling tokens & rate limits
    • Streaming response
    • Error Handling
  • Embeddings & Semantic Search
    • What embeddings are
    • Converting text -> vectors
    • Cosine similarity
    • Semantic retrieval
  • Vector Databases
    • Indexing embeddings
    • Storing & quering vectors
    • Similarity search
  • RAG (Retrieval-Agumented Generation)
    • Chunking strategies
    • Context injections
    • Reducing hallucinations
    • Knowledge-grounded response
  • AI Agents
    • Tool usage
    • Task planning
    • Multi-step reasoning
    • Basic agent workflows

πŸš€ Who Should Use This Repo?

This repository is perfect for:

  • πŸ§‘β€πŸŽ“ Students learning Generative AI
  • πŸ‘¨β€πŸ’» Developers transitioning into AI
  • πŸ”„ Professionals switching to AI/ML roles
  • πŸš€ Anyone who wants to build an AI portfolio
  • 🧠 Curious minds who want to understand how modern AI works

If you are at beginner level and want structured, practical learning β€” this repo is for you.

Generative AI Learning Roadmap

graph TD

A[Start: Generative AI Basics] --> B[Prompt Engineering]
B --> C[LLM APIs]
C --> D[Build Simple Apps<br/>Summarizer / Email Generator]

D --> E[Embeddings]
E --> F[Semantic Search]
F --> G[Vector Databases]

G --> H[RAG - Retrieval Augmented Generation]
H --> I[Build Chat with PDF / Knowledge Bot]

I --> J[AI Agents Basics]
J --> K[Tool Calling]
K --> L[Multi-step Reasoning Apps]

L --> M[Intermediate Gen AI Projects]
Loading

πŸ“‚ Repository Structure

gen-ai-beginner-projects/
β”‚
β”œβ”€β”€ ai-text-summarizer-gemini-python/
β”‚   β”œβ”€β”€ gemini-text-summarizer.py
β”‚   β”œβ”€β”€ READEME.md
β”‚
β”œβ”€β”€ ai-email-writer-gemini-python/
β”‚   β”œβ”€β”€ gemini-email-writer.py
β”‚   β”œβ”€β”€ READEME.md
β”‚   
β”œβ”€β”€ ...
β”‚
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ .env.example
β”œβ”€β”€ .gitignore
└── README.md

πŸ›  Tech Stack

Common stack used across experiments:

  • Language: Python 3.10+
  • LLMs: Google Gemini
  • Frameworks: langchain
  • Env Management: python-dotenv
  • IDE: VS Code (recommended)

βš™οΈ Environment Setup (One-Time)

Step 1: Clone the Repository

git clone https://github.com/pankaj-kaushik/gen-ai-beginner-projects.git
cd gen-ai-beginner-projects

Step 2: Create a Virtual Environment

python -m venv .venv

Activate it:

Windows (PowerShell):

.venv\Scripts\Activate.ps1

Mac/Linux:

source .venv/bin/activate

Step 3: Setup Environment Variables

Create a .env file at the root

GEMINI_API_KEY="your_api_key_here"
OPENAI_API_KEY="your_api_key_here"

πŸ‘‰ Refer to .env.example
πŸ‘‰ Never commit .env to GitHub

Step 4: Install python libraries

pip install -r requirements.text

▢️ How to Run A Project

Each project follows the same basic flow.

Step 1: Move into the project folder

cd ai-text-summarizer-gemini-python

Step 2: Run the python application

python gemini-text-summarizer.py

πŸ§ͺ How to Add a New Project

Follow this standard structure:

project-name/
β”œβ”€β”€ app.py
β”œβ”€β”€ requirements.txt (if any)
β”œβ”€β”€ README.md
└── assets/ (optional)

⚠️ Use similar file/folder naming convention

Best practices:

  • Focus on one GenAI concept
  • Keep code minimal & readable
  • Document:
    • what the experiment does
    • what you will learn
    • how to run it

🧭 Planned / Example Experiments

Some experiments you may find or add

  • Study Buddy / Concept Explainer
  • Email / Message Writer
  • Chat with PDF
  • Resume Analyzer
  • Prompt Comparison Lab
  • Embeddings Search Demo
  • RAG (Retrieval Augmented Generation)
  • Simple AI Agent
  • Interview Question Generator
  • Career Coach For S/W Engineers
  • Bug Root Cause Analyzer
  • Teacher for kids (Math/Logic)

πŸŽ“ Learning Resources

⚠️ Disclaimer

  • LLM APIs may incur cost
  • Outputs may vary due to model randomness
  • This repo is for learning & experimentation only

πŸ™Œ Acknowledgements

  • Google Gemini LLM
  • Open-source Python community

Contributing

πŸ’‘ If you found this helpful...

  • ⭐ Star the repo
  • 🍴 Fork it
  • πŸš€ Build on top of it & submit pull request
  • πŸ“’ Share your AI story platform

Happy Hacking πŸ§ͺπŸš€

About

Hands-on beginner-friendly Generative AI projects covering Prompt Engineering, LLM APIs, Embeddings, RAG, Vector Databases, and AI Agents. Learn Gen AI by building real-world projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages