
Explore the fundamentals of prompt engineering and generative AI, covering zero-shot, few-shot, chain-of-thought and tree-of-thought techniques, retrieval augmented generation with Lang chain framework, and guardrails.
Explore fundamentals of prompt engineering and generative AI by setting up Colab notebooks, structuring prompts, and applying Gemini Pro model and GPT models with one-shot and few-shot techniques.
Learn to stream large language model responses, apply best practices in prompt engineering, and tune temperature and token limits with the Gemini model, including chunked outputs and practical Python prompts.
Master zero-shot prompting and related techniques—few-shot, chain of thought, and tree of thoughts—using the Gemini Pro model, with retrieval augmented generation and practical parallelogram and sentiment examples.
Explore few-shot prompting and in-context learning to guide models with examples, and examine chain-of-thought prompting to provide step-by-step reasoning for complex tasks.
Set up a Google Colab notebook to run OpenAI's GPT-4, install the OpenAI library, manage the API key, and apply prompt engineering with system and user prompts for chat completions.
Explore the tree-of-thoughts prompting technique with GPT-3.5-turbo to enable backtracking, trial-and-error reasoning, and collaborative expert steps for complex tasks.
Explore the tree of thoughts prompting technique and its LangChain agents, using backtracking to improve large language model reasoning, demonstrated on a 4x4 Sudoku puzzle with a dot checker.
Learn retrieval augmented generation using a chroma vector store and conversational retrieval chain to handle csv data in colab, create embeddings, chunk text, and enable conversational question answering.
Explore retrieval augmented generation with LangChain, FAISS vector database, arXiv loader, and a conversational retrieval chain for accurate, source-based responses.
Explore retrieval augmented generation to improve factual consistency by grounding responses in relevant context, reduce hallucinations, and apply ragas metrics: faithfulness, relevancy, context precision, and context recall for evaluation.
Learn to evaluate retrieval augmented generation with the ragas framework and Lang Smith, building embeddings-based retrieval chains using a vector store and assessing faithfulness, relevancy, and context precision.
Use the Gemini model to create text embeddings with embeddings 001 and perform document search for a qa system, comparing mistral, llama, and smog 72b models, and exploring prompt engineering.
Explore how large language models like GPT and Llama predict the next token and master prompt engineering across decoder-only and encoder-decoder models.
Set up a Google Colab notebook to fine-tune a language model with supervised training, including data loading, cleaning, visualization, and train/eval splits (90/10).
Fine-tune a bert base cased model using tokenizers, input IDs, and attention masks for supervised sequence classification, with training, evaluation, and saving to the Huggingface hub.
Apply guardrails to align large language models with safety and ethical standards, reducing biases and hallucinations. Demonstrate system prompts and input-output filtering in OpenAI chat, implemented in Colab with the OpenAI library.
Apply the guardrails ai framework to extract structured information from text while enforcing safety criteria with pedantic validators and a guard object in a Colab workflow.
Generate structured data with guardrails ai using a chat model, validate with pydantic, create 20 user rows with order validation, and extract pdf information using guardrails and pedantic.
This course delves into the fundamental concepts related to Prompt Engineering and Generative AI. The course has subsections on Fundamentals of Prompt Engineering, Retrieval Augmented Generation, Fine-tuning a large language model (LLM) and Guardrails for LLM.
Section on Prompt Engineering Fundaments :
The first segment provides a definition of prompt engineering, best practices of prompt engineering and an example of a prompt given to the Gemini-Pro model with references for further reading.
The second segment explains what streaming a response is from a large language model, examples of providing specific instructions to the Gemini-Pro model as well as temperature and token count parameters.
The third segment explains what Zero-Shot Prompting technique is with examples using the Gemini Model.
The fourth segment explains Few-shot and Chain-of-Thought Prompting techniques with examples using the Gemini Model.
Subsequent segments in this section shall discuss setting up the Google Colab notebook to work with the GPT model from OpenAI and provide examples of Tree-of-Thoughts prompting technique, including the Tree-of-Thoughts implementation from Langchain to solve the 4x4 Sudoku Puzzle.
Section on Retrieval Augmented Generation (RAG) :
In this section, the first segment provides a definition of Retrieval Augmented Generation Prompting technique, the merits of Retrieval Augmented Generation and applying Retrieval Augmented Generation to a CSV file, using the Langchain framework
In the second segment on Retrieval Augmented Generation, a detailed example involving the Arxiv Loader, FAISS Vector Database and a Conversational Retrieval Chain is shown as part of the RAG pipeline using Langchain framework.
In the third segment on Retrieval Augmented Generation, evaluation of response from a Large Language Model (LLM) using the RAGAS framework is explained.
In the fourth segment on Retrieval Augmented Generation, the use of Langsmith is shown complementing the RAGAS framework for evaluation of LLM response.
In the fifth segment, use of the Gemini Model to create text embeddings and performing document search is explained.
Section on Large Language Model Fine-tuning :
In this section, the first segment provides a summary of prompting techniques with examples involving LLMs from Hugging Face repository and explaining the differences between prompting an LLM and fine-tuning an LLM.
The second segment provides a definition of fine-tuning an LLM, types of LLM fine-tuning and extracting the data to perform EDA (including data cleaning) prior to fine-tuning an LLM.
Third segment explains fine-tuning a pre-trained large language model on a task specific labeled dataset in detail.
Section on Guardrails for Large Language Models:
In this section, the first segment provides a definition of Guardrails as well as examples of Guardrails from OpenAI.
In the second segment on Guardrails, examples of open source Guardrail implementations are discussed with a specific focus on GuardrailsAI for extracting information from text.
In the third section, use of GuardrailsAI for generating structured data and interfacing GuardrailsAI with a Chat Model have been explained.
Each of these segments has a Google Colab notebook included.
The course notebooks were checked and updated using Claude Code in October 2026. The PDF in the first segment has the link to the updated notebooks and the steps to run them