Build a Chatbot with Python, RAG and OpenAI training course

This course is built around the OpenAI API & ecosystem. Learn how to develop intelligent chatbots using Python, Retrieval-Augmented Generation (RAG), embeddings, vector search & the latest OpenAI models. Ideal for developers who want hands-on experience building production-ready conversational AI with OpenAI technologies.

JBI training course London UK

"Our tailored course provided a well rounded introduction and also covered some intermediate level topics that we needed to know. Clive gave us some best practice ideas and tips to take away. Fast paced but the instructor never lost any of the delegates"

Brian Leek, Data Analyst, May 2022

Public Courses

17/08/26 - 3 days
£2995 +VAT
28/09/26 - 3 days
£2995 +VAT
09/11/26 - 3 days
£2995 +VAT

Customised Courses

* Train a team
* Tailor content
* Flex dates
From £1200 / day
EDF logo Capita logo Sky logo NHS logo RBS logo BBC logo CISCO logo
JBI training course London UK

  • Calling LLMs from Python using the OpenAI API
  • Building a conversational chatbot loop
  • Embeddings and semantic search
  • Vector databases and document indexing
  • Retrieval-Augmented Generation (RAG)
  • Adding memory to chatbots
  • Turning your chatbot into a simple app

Module 1 — Introduction to LLM ChatbotsGoal: Understand how modern chatbots work and call an LLM from Python.

Topics covered

    • What Large Language Models are

    • Tokens, context windows, and prompts

    • Chat vs completion models

    • Roles: system, user, assistant

    • Temperature and determinism

    • API keys and environment variables

Practical lab

    • Install dependencies

    • Make your first OpenAI API call

    • Generate text responses from Python

Topics covered

    • Chat history and message arrays

    • Maintaining conversation state

    • CLI chatbot architecture

    • Streaming responses (optional)

    • Designing system prompts

Practical lab

    • Build a terminal chatbot

    • Add conversation memory

    • Customize chatbot behaviour with prompts

Outcome: Attendees have a working chatbot that maintains conversation context.

 

 

 

 

 

 

Module 3 — Embeddings and Semantic SearchGoal: Understand how machines “understand meaning” in text.

Topics covered

    • What embeddings are

    • Vector representations of text

    • Cosine similarity

    • Semantic search vs keyword search

    • Introduction to vector databases

Practical lab

    • Generate embeddings

    • Compare similarity between sentences

    • Implement simple semantic search

Outcome: Attendees understand the foundation of retrieval systems.

Module 4 — Document Indexing for RAGGoal: Prepare documents for retrieval.

Topics covered

    • Why chunking matters

    • Chunk size strategies

    • Metadata storage

    • Building an embedding index

    • Loading text/PDF documents

    • Vector storage concepts

Practical lab

    • Load documents

    • Split into chunks

    • Generate embeddings

    • Store in a vector database (e.g. Chroma)

Outcome: Attendees can build a searchable knowledge index.

Module 5 — Retrieval-Augmented Generation (RAG)Goal: Build a chatbot that answers questions using external knowledge.

Topics covered

    • The RAG pipeline

    • Query embedding

    • Retrieving relevant chunks

    • Prompt grounding

    • Hallucination reduction

    • Context injection patterns

Practical lab - Build a RAG chatbot that:

    • accepts a question

    • retrieves relevant document chunks

    • generates a grounded answer

Outcome: Attendees build a real knowledge-based chatbot.

Module 6 — Conversation Memory and ImprovementsGoal: Make the chatbot feel more natural and reliable.

Topics covered

    • Short-term vs long-term memory

    • Conversation summarization

    • Token limits and context management

    • Prompt templates

    • Guardrails and instruction tuning

Practical lab

    • Add memory summarization

    • Improve chatbot reliability

    • Implement structured prompts

Outcome: Attendees can extend chatbot capabilities beyond basic RAG.

Module 7 — Deploying a Chatbot (Optional)Goal: Turn the chatbot into an application.

Topics covered

    • FastAPI chatbot endpoint

    • Simple web UI (Streamlit or similar)

    • Session handling

    • Environment configuration

    • Deployment basics

Practical lab

    • Build a chatbot API

    • Connect a minimal UI

Outcome: Attendees deploy a working chatbot service.

 

JBI training course London UK

This course is for developers with basic Python knowledge who want to build real AI applications.

You don’t need prior AI or machine learning experience. It’s ideal for:

  • Python developers curious about LLMs and chatbots
  • Software engineers exploring AI integration
  • Backend or full-stack developers adding AI features
  • Technical founders building AI products
  • Students wanting practical, hands-on AI skills

If you can write basic Python scripts, you’re ready.

 

 


5 star

4.8 out of 5 average

"Our tailored course provided a well rounded introduction and also covered some intermediate level topics that we needed to know. Clive gave us some best practice ideas and tips to take away. Fast paced but the instructor never lost any of the delegates"

Brian Leek, Data Analyst, May 2022



 

 

JBI training course London UK

Certification


Every delegate will be entitled to a certificate of achievement on completion of the course.

If you are missing your certificate - please use the link below to apply - you can also use this link to sign up for the JBI Training newsletter to receive technology tips directly from our instructors - Analytics, AI, ML, DevOps, Web, Backend and Security.
 



This hands-on course teaches you how to build intelligent, production-ready chatbots using Python and the OpenAI API. Starting with the fundamentals of Large Language Models (LLMs), you'll progressively develop a conversational chatbot, work with embeddings and semantic search, build a Retrieval-Augmented Generation (RAG) pipeline, implement conversation memory, and deploy your chatbot as a real-world application.

Designed for developers with basic Python experience, this course requires no prior AI knowledge. By the end, you'll have built a fully functional, knowledge-powered AI assistant using the OpenAI ecosystem and gained practical skills for developing modern AI applications.

Generative AI training teaches individuals and teams how to use AI systems that generate text, code, images, and other content — including tools such as ChatGPT, Claude, Gemini, and Microsoft Copilot. JBI's Generative AI training courses are suitable for business professionals, developers, analysts, managers, and technical leaders who want to use AI more effectively in their work, improve productivity, or build AI-powered applications and workflows.
Prompt engineering is the practice of designing and structuring inputs to AI language models to obtain accurate, relevant, and consistent outputs. Effective prompt engineering helps users get better results from AI tools, reduce errors and hallucinations, and build reliable AI-assisted workflows. JBI offers dedicated prompt engineering courses for general LLM use, ChatGPT-specific use, and advanced GPT and LLM applications.
Yes. All JBI Generative AI and LLM training courses are available as live online instructor-led sessions, with the same hands-on exercises and expert instruction as classroom delivery. Online training is available to delegates across the UK and internationally.
A Large Language Model (LLM) is an AI system trained on large amounts of text data to understand and generate human language. LLMs such as GPT-4, Claude, Llama, and Gemini are the foundation of modern generative AI tools including ChatGPT and Microsoft Copilot. JBI's LLM training courses cover how LLMs work, their capabilities and limitations, how to use them effectively through prompt engineering, and how to build applications on top of LLM APIs.
Yes. All JBI Generative AI training courses can be delivered as bespoke closed-group programmes for corporate teams. Content is tailored to your team's role, existing AI experience, specific tools in use, and business objectives. JBI has delivered bespoke Generative AI and LLM training to teams in financial services, professional services, retail, media, the public sector, and technology organisations across the UK.
Retrieval-Augmented Generation (RAG) is a technique that enables AI language models to access and reason over external, up-to-date knowledge sources — such as internal documents, databases, or APIs — rather than relying solely on their training data. RAG is widely used to ground AI responses in factual, organisation-specific information. JBI covers RAG in several courses including Build Agentic AIs with Python, RAG and MCP and Build a Chatbot with Python, RAG and OpenAI.
Model Control Protocol (MCP) is an open standard for connecting AI models to tools, data sources, and external services in a structured and interoperable way. It provides a consistent interface for AI agents to access APIs, databases, file systems, and other resources. JBI offers a dedicated MCP training course covering server and client implementation, Claude API integration, and production deployment of MCP-enabled AI systems.
Yes. JBI Training offers a 3-day LangChain for AI Agents training course covering LLM workflow design, chain construction, agent development, memory systems, retrieval integration, and production deployment using the LangChain framework in Python. The course is designed for developers building LLM-powered applications and AI agent systems.
Prompt engineering focuses on crafting effective inputs to AI models to improve the quality and consistency of outputs — a skill relevant to any user of AI tools, technical or non-technical. Building AI applications with LLMs involves programming against model APIs, designing application architecture, managing context and memory, handling tool use and retrieval, and deploying AI-powered systems. JBI offers training for both — from introductory prompt engineering to advanced LLM application development.
Yes. JBI's Generative AI and LLM training range includes courses for complete beginners such as Harnessing Generative AI, Prompt Engineering for ChatGPT, and AI Prompt Engineering, which require no prior programming or AI experience. Developer-focused courses such as LangChain for AI Agents and Mastering LLMs require programming experience and prior familiarity with AI concepts. Each course page specifies the recommended experience level and prerequisites.
JBI Training regularly reviews and updates its Generative AI and LLM training content to keep pace with the rapid developments in this field. New model releases, updated prompt engineering best practices, emerging frameworks such as LangChain and MCP, and evolving governance requirements all feed into JBI's course refresh cycle. Whether you are learning about ChatGPT, Claude, Gemini, or open-source LLMs, JBI's training reflects how these tools are being used in practice today — not how they worked a year ago.

CONTACT
+44 (0)20 8446 7555

[email protected]

 

Copyright © 2026 JBI Training. All Rights Reserved.
JB International Training Ltd  -  Company Registration Number: 08458005
Registered Address: Wohl Enterprise Hub, 2B Redbourne Avenue, London, N3 2BS

Modern Slavery Statement & Corporate Policies | Terms & Conditions | Contact Us

POPULAR

AI training courses                                                                        CoPilot training course

Threat modelling training course   Python for data analysts training course

Power BI training course                                   Machine Learning training course

Spring Boot Microservices training course              Terraform training course

Data Storytelling training course                                               C++ training course

Power Automate training course                               Clean Code training course