NotesB.Sc IT (AI)Agents, RAG & Vibe Coding
Year 3 · Semester 1

Agents, RAG & Vibe Coding Notes

Program:B.Sc IT (AI)
Semester:Semester 5
Hours:15
Units:8 Units

Subject Overview

Year 3 (Applied AI & Building Products) is where learning becomes building. This semester covers retrieval systems, agent frameworks and AI-native development workflows — the goal being to build sophisticated AI applications using retrieval, agents and AI-assisted development at every step. Vibe coding is treated as a discipline in its own right: directing AI assistants effectively, reviewing generated code critically, and knowing when not to trust the output.

Unit-wise Syllabus

8 units — click WhatsApp below to get the full notes for each

1

Unit 1: Retrieval-Augmented Generation (4 hours)

  • Embeddings
  • vector databases (Pinecone, Weaviate, Chroma, pgvector)
  • chunking strategies
  • hybrid search
ProcessHow RAG works
  1. 1

    Chunk documents

  2. 2

    Embed chunks

    Turn text into vectors

  3. 3

    Store in a vector database

  4. 4

    Embed the user's question

  5. 5

    Retrieve the most similar chunks

  6. 6

    LLM answers using those chunks

    With citations

Study guide

Retrieval-Augmented Generation gives models access to your own data: embeddings, vector databases (Pinecone, Weaviate, Chroma, pgvector), chunking strategies and hybrid search. Chunking choices often matter more than the model you pick.

2

Unit 2: Advanced RAG (3 hours)

  • Re-ranking
  • query rewriting
  • multi-hop retrieval
  • evaluation (RAGAS)
  • handling long context
ClassificationMaking RAG better
Advanced RAG
  • Hybrid search

    Keywords + vectors

  • Re-ranking

    Re-score retrieved chunks

  • Query rewriting

    Clarify vague questions

  • Multi-hop retrieval

    Chain several lookups

  • Evaluation

    RAGAS: faithfulness, relevance

Study guide

Advanced RAG improves quality with re-ranking, query rewriting, multi-hop retrieval, evaluation (RAGAS) and long-context handling. Measure retrieval quality separately from answer quality.

3

Unit 3: Agent Architectures (4 hours)

  • ReAct
  • tool use
  • multi-agent systems
  • planning
  • memory
  • frameworks — LangChain
  • LlamaIndex
  • CrewAI
  • AutoGen
CycleThe ReAct agent loop
The ReAct agent loop
1Thought
2Action
3Observation
4Repeat or answer
  1. 1. Thought: Reason about the next step
  2. 2. Action: Call a tool
  3. 3. Observation: Read the tool result
  4. 4. Repeat or answer: Until the task is done

Study guide

Agents let models plan and act: ReAct, tool use, multi-agent systems, planning and memory, with frameworks such as LangChain, LlamaIndex, CrewAI and AutoGen. Start with a single agent and a few reliable tools.

4

Unit 4: Anthropic Claude & MCP (3 hours)

  • Model Context Protocol
  • Claude Code as a coding agent
  • building tools that AI assistants can call
ProcessHow MCP connects AI to tools
  1. 1AI app (MCP client)

    e.g. Claude Code

  2. 2Discovers tools

    From an MCP server

  3. 3Model decides to call a tool
  4. 4MCP server runs it

    Database, API, files

  5. 5Result returns to the model

Study guide

You study Anthropic's Claude and the Model Context Protocol: how MCP works, Claude Code as a coding agent and building tools that AI assistants can call. Build a small MCP server to expose your own data or tool.

5

Unit 5: Vibe Coding as Practice (3 hours)

  • Directing Cursor/Claude Code effectively
  • spec-driven prompts
  • reviewing AI output
  • when NOT to trust the AI
  • managing context windows in coding agents
ProcessVibe coding done right
  1. 1

    Write a clear spec

    Goal, constraints, tests

  2. 2

    Give the agent focused context

  3. 3

    Generate in small steps

  4. 4

    Review every diff

    Don't trust blindly

  5. 5

    Run tests and fix

  6. 6

    Commit and repeat

Study guide

Vibe coding as practice means directing AI coding tools effectively: spec-driven prompts, reviewing AI output, knowing when not to trust the AI and managing context windows. Always read and test the code an AI writes.

6

Unit 6: Multimodal AI (3 hours)

  • Vision-language models
  • audio (Whisper, TTS)
  • generation (Stable Diffusion, FLUX, video models)
ClassificationMultimodal AI
Beyond text
  • Vision-language models

    Understand images and text together

  • Speech to text

    Whisper

  • Text to speech

    Natural voices

  • Image generation

    Stable Diffusion, FLUX

  • Video generation

    Text-to-video models

Study guide

Multimodal AI covers vision-language models, audio (Whisper, TTS) and generation (Stable Diffusion, FLUX, video models). Combine two modalities, such as speech in and image out, in a small demo.

7

Unit 7: Tools introduced

  • Cursor
  • Windsurf
  • Claude Code
  • GitHub Copilot Workspace
  • v0
  • Bolt
  • Lovable
  • Replit Agent for rapid prototyping
  • LangChain
  • LlamaIndex
  • CrewAI
  • Pydantic AI
  • vector DBs — Pinecone
  • Weaviate
  • Chroma
  • pgvector
  • Qdrant
ClassificationAgent and RAG toolkit
Tools
  • AI code editors

    Cursor, Windsurf, Claude Code

  • Rapid prototyping

    v0, Bolt, Lovable, Replit Agent

  • Frameworks

    LangChain, LlamaIndex, CrewAI, Pydantic AI

  • Vector databases

    Pinecone, Weaviate, Chroma, pgvector, Qdrant

Study guide

The tools include Cursor, Windsurf, Claude Code, Copilot Workspace, v0, Bolt, Lovable, Replit Agent, LangChain, LlamaIndex, CrewAI, Pydantic AI and vector databases such as Pinecone, Weaviate, Chroma, pgvector and Qdrant. Pick two tools and learn them deeply instead of sampling everything.

8

Unit 8: Mini-projects

  • RAG-powered Q&A system over a custom document corpus with evaluation
  • multi-agent research assistant that browses
  • summarizes and writes reports
  • ship a full-stack AI app in 48 hours using v0 + Cursor + Claude as your team
ProcessShip a full-stack AI app in 48 hours
  1. 1Hour 0–4

    Problem, spec and wireframe

  2. 2Hour 4–16

    UI with v0, backend with an AI editor

  3. 3Hour 16–32

    Wire up the LLM, RAG or agent

  4. 4Hour 32–44

    Test, fix, add evals

  5. 5Hour 44–48

    Deploy and demo

Study guide

The mini-projects are a RAG question-answering system with evaluation, a multi-agent research assistant and a full-stack AI app shipped in 48 hours with v0, Cursor and Claude. Shipping fast under constraints is excellent practice for real startup work.

Why Agents, RAG & Vibe Coding Matters

RAG, agents and AI-assisted development define how AI products are built today. The skills here are exactly what AI startups and product teams hire for.

How to Prepare for Agents, RAG & Vibe Coding

  • Build a RAG system on documents you know well so you can judge answer quality.
  • Add evaluation early; it is what separates demos from products.
  • Review every line of AI-generated code and write tests.

Agents, RAG & Vibe Coding: Frequently Asked Questions

What is RAG?

Retrieval-Augmented Generation retrieves relevant documents and gives them to a language model so its answer is grounded in your data.

What is the Model Context Protocol?

MCP is an open standard that lets AI assistants connect to external tools and data sources in a consistent way.

Want the Complete Notes & Past Papers?

WhatsApp us and we'll send you the full notes, question banks, and previous year papers for Agents, RAG & Vibe Coding.