A hands-on learning repository exploring modern AI patterns including LLM integration, RAG systems, LangGraph workflows, and chain-of-thought reasoning.
This repository contains my learning experiments and code samples from exploring generative AI and agentic patterns. It covers a wide range of topics from basic LLM integration to advanced concepts like RAG (Retrieval Augmented Generation) and LangGraph workflows.
β οΈ Note: This is a learning repository. Code may be experimental or incomplete as it reflects my learning journey.
Before running the examples, ensure you have the following installed:
| Tool | Version | Purpose |
|---|---|---|
| Python | 3.10+ | Core runtime for Python examples |
| Node.js | 18+ | Runtime for JavaScript examples |
| Ollama | Latest | Local LLM inference server |
| Tool | Purpose |
|---|---|
| Docker | Running Qdrant vector database |
| Qdrant | Vector database for RAG examples |
| Gemini API Key | Google Gemini examples |
# Chat models
ollama pull qwen2.5:14b
ollama pull gemma3:27b
ollama pull qwen3:30b
# Vision models
ollama pull qwen3-vl:2b
# Embedding models
ollama pull bge-m3
# Coding models
ollama pull qwen3-codergit clone https://github.com/sangleshubham/Learn-generative-Agentic-AI.git
cd Learn-generative-Agentic-AIcp .env.example .env
# Edit .env with your API keyspython -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtollama servedocker compose -f 11-rag-qdrant-python/docker-compose.yml up -dagentic-generative-ai-course/
βββ 01-ollama-fastapi/ # FastAPI + Ollama integration
βββ 02-hugging-face-transformers/# HuggingFace Transformers pipeline
βββ 03-chain-of-thought-agent/ # CoT agent with tool calling
βββ 04-ollama-nodejs-agent/ # Node.js agent implementation
βββ 05-multi-modal-vision/ # Vision/image understanding
βββ 06-langgraph-nodejs/ # LangGraph with Node.js
βββ 07-langgraph-python/ # LangGraph with Python
βββ 08-gemini-few-shot-prompting/# Gemini + few-shot prompting
βββ 09-chain-of-thought/ # Basic CoT prompting
βββ 10-token-encoding/ # Token encoding/decoding
βββ 11-rag-qdrant-python/ # RAG with Qdrant (Python)
βββ 12-rag-qdrant-nodejs/ # RAG with Qdrant (Node.js)
βββ 13-RAG-project-file-search-engine/# RAG File Search Engine
βββ .env.example # Environment configuration template
βββ requirements.txt # Python dependencies
βββ README.md # This file
Basic LLM chat API using FastAPI and Ollama client.
- Tech: Python, FastAPI, Ollama
- Concepts: REST API, chat completions
Using HuggingFace pipelines for multimodal inference.
- Tech: Python, Transformers, Gemma-3
- Concepts: Image-text-to-text pipeline
AI agent using CoT prompting with tool calling capabilities.
- Tech: Python, OpenAI-compatible API
- Concepts: ReAct pattern, function calling, structured output
Interactive agent implementation in Node.js with Zod schema validation.
- Tech: Node.js, OpenAI SDK, Zod
- Concepts: Schema validation, system command execution
Image understanding using vision language models.
- Tech: Node.js, OpenAI SDK
- Concepts: Base64 image encoding, vision models
LangGraph workflow exploration in Node.js.
- Tech: Node.js, LangGraph
- Concepts: State graphs, graph workflows
State machines and conditional routing with LangGraph.
- Tech: Python, LangGraph, LangChain
- Concepts: StateGraph, conditional edges, node chaining
Using Gemini API with OpenAI SDK and few-shot examples.
- Tech: Python, Gemini API
- Concepts: Few-shot learning, structured prompts
Basic chain-of-thought reasoning patterns.
- Tech: Python, Ollama/Gemini
- Concepts: CoT prompting, JSON structured output
Understanding tokenization using tiktoken.
- Tech: Python, tiktoken
- Concepts: Token encoding/decoding, token counting
Complete RAG pipeline using Qdrant vector database.
- Tech: Python, LangChain, Qdrant, Ollama
- Concepts: PDF loading, text splitting, embeddings, similarity search
RAG implementation in Node.js with EPUB/PDF support.
- Tech: Node.js, LangChain.js, Qdrant
- Concepts: Document loaders, vector stores, RAG queries
RAG-based search engine for querying file contents using local LLMs.
- Tech: Node.js, LangChain, Qdrant, Ollama
- Concepts: RAG, Vector Search, File Ingestion, CLI Interface
| Category | Technologies |
|---|---|
| Languages | Python 3.10+, Node.js 18+ |
| LLM Providers | Ollama (local), Google Gemini |
| Frameworks | FastAPI, LangChain, LangGraph |
| Vector Database | Qdrant |
| Embeddings | BGE-M3 (via Ollama) |
| Validation | Pydantic, Zod |
- π Udemy Course
- π¦ Ollama Documentation
- π LangChain Documentation
- π LangGraph Documentation
- ποΈ Qdrant Documentation
Made with β€οΈ while learning AI