Skip to main content
HomeCode-alongsArtificial Intelligence (AI)

Retrieval Augmented Generation with the OpenAI API & Pinecone

Build a movie recommender system using GPT and learn key techniques to minimize hallucinations and ensure factual answers.
Oct 2023
Code along with us onCode Along

Large language models like GPT are brilliant, but have a flaw: by themselves, they can't answer questions about facts when they weren't trained on suitable data, and may "hallucinate" an answer. This is a problem for answering questions that require recent knowledge or domain knowledge. The solution is to use "retrieval augmented generation" by pairing the LLM with a data store. In this code-along, you'll learn how to perform retrieval augmented generation in a case study on movie data. You'll process movie data for storage in the Pinecone vector database, then use it to inform answers to questions to GPT. You'll also learn how to structure prompts in a way to assist passing knowledge to and from the LLM.

Topics
Related

tutorial

Semantic Search with Pinecone and OpenAI

A step-by-step guide to building semantic search applications using OpenAI and Pinecone in Python.
Moez Ali's photo

Moez Ali

13 min

tutorial

Building Intelligent Applications with Pinecone Canopy: A Beginner's Guide

Explore using Canopy as an open-source Retrieval Augmented Generation (RAG) framework and context built on top of the Pinecone vector database.
Kurtis Pykes 's photo

Kurtis Pykes

12 min

tutorial

How to Build a Chatbot Using the OpenAI API & Pinecone

Step-by-step guide for building LLM-powered Chatbot on your own custom data, leveraging RAG techniques using OpenAI and Pinecone in Python.
Moez Ali's photo

Moez Ali

12 min

code-along

Building Chatbots with the OpenAI API and Pinecone

Build a chatbot with long term memory using the OpenAI API & PineCone and use it to answer questions about research papers.
James Briggs's photo

James Briggs

code-along

Retrieval Augmented Generation with GPT and Milvus

In this session you'll learn how to get started with Milvus and perform Q&A on some documents using GPT and the RAG technique.
Yujian Tang's photo

Yujian Tang

code-along

Semantic Search with Pinecone

Learn the fundamentals of text embedding and vector databases with Pinecone to build a simple search engine.
James Briggs's photo

James Briggs

See MoreSee More