Wednesday, 9 April 2025

5 Day intensive on Generative AI hosted by Kaggle and Google

Day 1 topic: Prompt Engineering & Foundation Models, as described in the Kaggle & Google Generative AI Intensive course.


🔍 Day 1 Summary: Foundation Models & Prompt Engineering

Core Concepts:

  • Foundation Models like Gemini, GPT, and PaLM 2 are large language models pre-trained on vast corpora of text. These models serve as the base for a variety of generative tasks such as summarization, translation, and Q&A.

  • Prompt Engineering is the art of crafting inputs to guide the model to generate desired outputs. It’s a key skill for interacting effectively with LLMs.

Prompt Engineering Techniques:

  1. Zero-shot prompting – Ask a question or give a task without examples.

    • Example: “Translate the following sentence into French: 'Hello, how are you?'”

  2. Few-shot prompting – Provide a few examples before asking the model to generalize.

    • Example:
      “Translate to French:

      • 'Good morning' → 'Bonjour'

      • 'Thank you' → 'Merci'

      • 'See you tomorrow' → ?”

  3. Chain-of-Thought (CoT) – Ask the model to reason step by step.

    • Example: “If Tom has 3 apples and gives 1 to Sara, how many are left? Let’s think step-by-step.”

  4. Role-based prompting – Assign a persona to improve relevance.

    • Example: “You are a helpful math tutor. Explain Pythagoras theorem in simple terms.”

Parameters and Controls:

  • Temperature – Controls randomness. A lower value (e.g., 0.2) gives more deterministic outputs, while higher values (e.g., 0.8) generate more creative or varied results.

  • Max Tokens – Limits the length of the output.

  • Top-k / Top-p Sampling – Sampling strategies to control diversity in outputs.


On Day1 of the Generative AI Intensive course, several real-world use cases for prompt engineering with foundation models were showcased. Here's a deeper look:

  1. Product Description Generation: By feeding structured product attributes (like color, material, usage), prompts can generate engaging marketing descriptions. This helps e-commerce businesses automate and scale content creation.

  2. Review Summarization: LLMs were used to condense long customer reviews into concise summaries, highlighting sentiments and key takeaways—useful for businesses monitoring customer feedback.

  3. Meeting Transcripts → Action Items: With prompts like “List all action items from this meeting,” LLMs extracted key tasks from raw transcripts, helping teams boost productivity and clarity.

  4. Data Augmentation via Paraphrasing: Prompts were used to rephrase existing content (e.g., questions, descriptions), which is valuable in training NLP models or diversifying datasets.

  5. Q&A from Knowledge Docs: Models were prompted to answer user queries based on internal manuals or FAQs, forming the foundation of RAG-based assistants.

For a comprehensive exploration of these topics, you can watch the full Day 3 session here:





Day 2 of the 5-Day Generative AI Intensive Course, the focus was on Embeddings and Vector Databases. This session delved into how embeddings serve as numerical representations capturing the semantic essence of various data types, and how vector databases facilitate efficient data retrieval.

Key Topics Covered:

  1. Understanding Embeddings:

    • Embeddings are numerical vectors that encapsulate the semantic meaning of data, enabling machines to process and compare diverse data types effectively.

    • The evolution of embedding techniques was discussed, from basic methods like Bag-of-Words to advanced transformer-based models.

  2. Types of Embeddings:

    • The course explored various embeddings, including text, image, multimodal, and graph embeddings, highlighting their applications in different domains.

  3. Vector Search Algorithms:

    • Techniques such as Locality-Sensitive Hashing (LSH), Hierarchical Navigable Small Worlds (HNSW), and Google's ScaNN algorithm were examined for efficient similarity searches in high-dimensional spaces.

  4. Integration with Large Language Models (LLMs):

    • The session emphasized how embeddings enhance LLMs through Retrieval-Augmented Generation (RAG), improving the models' ability to fetch and generate accurate information.

Practical Applications:

  • Participants engaged in hands-on code labs, such as building a Document Q&A system using RAG, which involved creating a vector database, retrieving relevant information, and generating precise answers.

Expert Insights:

  • The livestream featured Google experts who shared advancements in embedding models and their practical applications, providing participants with a deeper understanding of the subject matter.

For a comprehensive exploration of these topics, you can watch the full Day 2 session here:



On Day 3 of the 5-Day Generative AI Intensive Course by Kaggle and Google, the focus was on Generative AI Agents—advanced systems that extend beyond static prompts to autonomously interact with their environment, make decisions, and perform tasks using tools and structured workflows.

Key Concepts Covered:

  1. Architecture of AI Agents:

    • Orchestration Layer: Manages the agent's decision-making processes, coordinating tasks and tool usage.

    • Tools and Extensions: Enable agents to interact with external systems, such as databases or APIs, enhancing their functionality.

    • Data Stores: Provide agents with access to relevant information, ensuring informed decision-making.

  2. Tool Integration:

    • Emphasis on equipping agents with the capability to utilize external tools for tasks like data retrieval and processing.

    • Practical examples included building agents that can query databases using function calling.

  3. Evaluation Frameworks:

    • Techniques to assess agent performance, focusing on metrics like accuracy, efficiency, and reliability in task execution.

  4. Multi-Agent Systems:

    • Exploration of patterns and strategies for coordinating multiple agents to work collaboratively towards complex objectives.

Hands-On Code Labs:

  1. Conversational Agent with SQL Database Access:

    • Developed an agent capable of understanding user queries and retrieving relevant information from a structured SQL database using function calling.

  2. Agentic Ordering System using LangGraph:

    • Built an ordering system where the agent autonomously manages the ordering process, demonstrating the integration of reasoning and tool usage.

These practical exercises provided participants with experience in creating agents that combine reasoning abilities with external tool utilization, laying the groundwork for developing autonomous systems capable of complex interactions.

For a comprehensive understanding and detailed walkthroughs, you can refer to the Day 3 Livestream Session and the associated whitepapers and code labs.




On Day 4 of the Generative AI Intensive Course by Google and Kaggle, the focus was on Domain-Specific Large Language Models (LLMs). The session addressed the limitations of general-purpose LLMs in specialized fields and emphasized the need for customization to enhance accuracy and reliability in high-stakes industries such as healthcare and cybersecurity. 

Key Topics Covered:

  1. Limitations of Generic LLMs: General LLMs, while powerful, may lack the nuanced understanding required for specialized domains, leading to potential inaccuracies or "hallucinations" in outputs. 

  2. Domain-Specific Fine-Tuning: By training LLMs on curated, high-quality domain data, their performance can be significantly improved for niche applications. This process enhances the model's reliability and applicability in specialized areas. 

  3. Case Studies:

    • Med-PaLM: A healthcare-focused LLM developed to assist medical professionals by understanding clinical language and providing accurate medical information. Notably, Med-PaLM achieved a passing score on the U.S. Medical Licensing Exam. 

    • SecLM: A security-focused LLM designed to address challenges in cybersecurity, such as threat detection and analysis, by automating tasks and enhancing security measures. 

  4. Enhancing Model Trustworthiness through Grounding: Incorporating real-time data from external sources, like Google Search, into LLMs helps reduce hallucinations and ensures that the model's responses are based on current and relevant information. 

Hands-On Components:

  • Fine-Tuning a Custom Model: Participants engaged in exercises to improve an LLM's output quality by training it on domain-specific data, observing enhancements in specialized use cases such as secure code validation and medical Q&A. 

  • Google Search Grounding with Gemini: Attendees built systems where LLM responses were grounded in real-time Google Search results, comparing the factual accuracy and clarity of grounded versus non-grounded outputs. 

For a comprehensive understanding, you can watch the full Day 4 session here:



Day 5 of the 5-Day Generative AI Intensive Course, hosted by Kaggle and Google, focused on MLOps (Machine Learning Operations) for Generative AI. This session addressed the unique challenges and strategies involved in deploying and maintaining generative AI models in production environments.

Key Topics Covered:

  1. Prompt Management: Emphasized the importance of versioning and optimizing prompts, treating them as critical artifacts in the development process. 

  2. Evaluation Techniques: Discussed methods for assessing subjective outputs, such as text coherence and image alignment, using metrics like BLEU and ROUGE for language tasks, and leveraging models like Gemini for multimodal evaluations. 

  3. Chaining and Augmentation: Explored the integration of multiple models or external data sources to enhance generative AI applications, including the implementation of Retrieval-Augmented Generation (RAG) to fetch real-time information. 

  4. Governance and Monitoring: Highlighted the necessity of ensuring safety, transparency, and fairness in AI outputs, along with continuous monitoring to detect issues like data drift, toxicity, and hallucinations. 

  5. Production Deployment: Covered strategies for deploying scalable generative AI systems using cloud services like Vertex AI, integrating CI/CD pipelines for continuous improvement, and automating workflows for evaluation and monitoring. 

The course also featured hands-on code labs demonstrating the deployment of generative AI systems with tools like FastAPI for real-time interactions and Google Cloud Logging for observability. These practical sessions provided participants with experience in building end-to-end pipelines for experimentation, evaluation, and deployment. 

For a more in-depth understanding, you can watch the recorded livestream session for Day 5, featuring Paige Bailey, which delves deeper into these topics. 



Hope you find this blog helpful to learn on Generative AI Intensive course. Like this blog. That will really encourage me to write such blogs. Please watch for more details on  interesting ideas on practical AI projects on this blog.





No comments:

Post a Comment

AI and Industrial IOT Solution

In this blog article we will discuss Industrial  IOT Solution Architecture and how AI can help achieve huge prodictivity. 1. Master Data Syn...