FA-0583Agentic & Generative AISoftware DevelopmentData & AnalyticsDevOps, Cloud & Infrastructure

Applied Generative AI with Python

Model APIs, LangChain and retrieval-grounded application prototypes

Build and evaluate Python generative-AI prototypes using model APIs, LangChain and retrieval-augmented generation.

Introduction

Why this course

This five-day practical course helps Python programmers develop small generative-AI applications. It introduces model capabilities and limitations, basic machine-learning concepts, hosted and local inference options, prompt design, LangChain and retrieval-augmented generation.

Participants work towards one bounded chatbot, document assistant or code-assistance prototype using prepared data and selected tools. Deployment is demonstrated in a chosen environment; the course does not claim to produce a production-certified system or mastery of all cloud platforms. Model access, licences, runtime requirements and usage costs vary by provider.

Learning outcomes

Learning outcomes

The course teaches participants to:

  • Explain generative-AI and LLM concepts, limitations and relevant ethical considerations.
  • Implement selected introductory ML and neural-network examples in Python.
  • Integrate a supported model API or local inference interface with secure configuration and response handling.
  • Develop a narrow LangChain workflow with explicit state, tool boundaries and evaluation.
  • Build and review a small retrieval-grounded document question-answering prototype.
  • Apply selected Python organisation/concurrency techniques and demonstrate packaging and deployment of the prototype.
Prerequisites

Prerequisites

  • Basic proficiency in Python programming, including data types, control structures, functions, and object-oriented programming.
  • Familiarity with Python libraries such as NumPy and pandas.
  • Understanding of fundamental programming concepts and logical problem-solving skills.
  • A suitable Python development environment and internet access.
  • Access to selected approved model services or suitable local inference resources; API usage may require separate billing.
  • Prepared non-confidential documents for retrieval exercises.
Training outline

5 modules

·
01Day 1 — Generative AI and Modelling Foundations1 topics

Module 1 — Generative AI and LLMs

  • Overview of Generative AI: Definition, history, and applications.
  • Understanding Large Language Models (LLMs): Architecture, capabilities, and limitations.
  • Ethical considerations in AI development and deployment.

Module 2 — Introductory Machine Learning and Deep Learning

  • Compare supervised, unsupervised and reinforcement learning at an introductory level.
  • Deep Learning basics: Neural networks, activation functions, and backpropagation.
  • Implement selected small ML and neural-network examples using scikit-learn and a compatible TensorFlow/Keras environment.
02Day 2 — APIs and Prompt Design1 topics

Module 3 — Hosted APIs and Local Inference

  • Understanding APIs: RESTful APIs, authentication, and data exchange formats.
  • Use the supported OpenAI API/SDK for a selected text-generation task; keep keys outside source code.
  • Compare Hugging Face Transformers inference with hosted APIs; use the runtime and hardware required by the selected model.
  • Compare DeepSeek's API integration pattern and provider-specific model availability, data handling and limits.

Module 4 — Prompting and Evaluation

  • Designing effective prompts: Principles and best practices.
  • Compare zero-shot and few-shot instructions; use prompting techniques appropriate to the model rather than assuming explicit chain-of-thought requests improve every model.
  • Generate and compare prompt variants using a small evaluation set.
  • Hands-on activity: Crafting prompts for various AI tasks.
03Day 3 — LangChain Application Workflows1 topics

Module 5 — Chains, Agents and State

  • Introduction to LangChain: Purpose and core components.
  • Build a narrow chain or tool-using agent; distinguish orchestration from autonomous production authority.
  • Implementing memory and state management in applications.
  • Guided exercise: a small conversational workflow with bounded state and clear failure handling.
  • Use current supported LangChain interfaces, such as create_agent for an appropriate agent example.
  • Restrict tool access, validate results and provide review points rather than run unrestricted automation.
04Day 4 — Retrieval and Python Engineering1 topics

Module 6 — Retrieval-Augmented Generation

  • RAG architecture, potential grounding benefits and remaining retrieval/generation failure modes.
  • Implementing RAG for document retrieval and question answering.
  • Evaluate retrieval relevance, answer grounding, latency and failure cases; RAG does not guarantee factual accuracy.
  • Exercise: a source-grounded document Q&A or summarisation prototype with references checked against the retrieved material.

Module 7 — Selected Python Techniques

Decorators:

  • Understanding decorators and their use cases.
  • Use decorators for reusable logging and monitoring; discuss how wrappers fit into, rather than replace, authentication controls.

Recursion:

  • Concept of recursion and its applications.
  • Solving problems involving deeply nested data structures.

Parallel Computing:

  • Introduction to multiprocessing and multithreading in Python.
  • Choose concurrency patterns suited to the workload, with bounded resource use and error handling.
05Day 5 — Capstone and Deployment Demonstration1 topics

Module 8 — Application Prototype

  • Chatbot example combining a selected model interface and LangChain.
  • Document-assistance example using retrieval and source checking.
  • Code-assistance example with review and controlled execution.
  • Develop one scoped prototype incorporating selected course techniques; compare the other application patterns through demonstrations.

Module 9 — Packaging, Deployment and Operational Review

  • Containerizing applications using Docker.
  • Demonstrate deployment in one selected cloud or learning environment; compare AWS and Azure requirements without deploying to every platform.
  • Discuss monitoring, maintenance, cost and scaling considerations and identify gaps before production use.
  • Evaluate the prototype against sample tasks and document incorrect or unsupported responses.
  • Review secret handling, input/output validation, resource usage and remaining production requirements.

A programme built around your team.

Share your training goals and requirements.

Applied Generative AI with Python
FA-0583

Share your requirements for this programme.

Training enquiry