Fixing LLM Hallucinations with Retrieval Augmentation in LangChain #6

From the creator

Large Language Models (LLMs) have a data freshness problem. Even some of the most powerful models, like ChatGPT's gpt-3.5-turbo and GPT-4, have no idea about recent events. The world, according to LLMs, is frozen in time. They only know the world as it appeared through their training data. So, how do we handle this problem? We can use retrieval augmentation. This technique allows us to retrieve relevant information from an external knowledge base and give that information to our LLM. The external knowledge base is our "window" into the world beyond the LLM's training data. In this video, we will learn all about implementing retrieval augmentation for LLMs using LangChain and the Pinecone vector database. 🌲 Pinecone article: https://pinecone.io/learn/langchain-retrieval-augmentation 📌 Code notebook: https://github.com/pinecone-io/examples/blob/master/learn/generation/langchain/handbook/05-langchain-retrieval-augmentation.ipynb 👋🏼 NLP + LLM Consulting: https://aurelio.ai 👾 Discord: https://discord.gg/c5QtDB9RAP 🎙️ Support me on Patreon: https://patreon.com/JamesBriggs 🤖 70% Discount on the NLP With Transformers in Python course: https://bit.ly/3DFvvY5 🎉 Subscribe for Article and Video Updates! https://jamescalam.medium.com/subscribe https://medium.com/@jamescalam/membership 00:00 Hallucination in LLMs 01:32 Types of LLM Knowledge 03:08 Data Preprocessing with LangChain 09:54 Creating Embeddings with OpenAI's Ada 002 13:14 Creating the Pinecone Vector Database 16:57 Indexing Data into Our Database 20:27 Querying with LangChain 23:07 Generative Question-Answering with LangChain 25:27 Adding Citations to Generated Answers 28:42 Summary of Retrieval Augmentation in LangChain #artificialintelligence #langchain #nlp #openai #deeplearning #chatgpt

Choose to Build with AI
Matched to Semantic Search

AI Maker Residence 3

The third AI workshop taught by our legendary teacher, Nick Sarafa. This is a full-day hands-on training workshop for purposeful co-creation with AI using Claude Code. Imagine having access to hundreds of billions of dollars of computing power and knowing exactly how to make it work for you through the power of super intelligence.

◆ Fri 09 Oct 2026 ◆ KOKO Cafe, London ◆ With Nick Sarafa
AI Maker Residence 3
Live event
AI Maker Residence 3
Fri 09 Oct 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.