Skip to main content
HomeCode-alongsArtificial Intelligence (AI)

Chat with Your Documents Using GPT & LangChain

In this code-along, Andrea Valenzuela, Computing Engineer at CERN, and Josep Ferrer Sanchez, Data Scientist at the Catalan Tourist Board, will walk you through building an AI system that can query your documents & data using LangChain & the OpenAI API.
Jan 2024
Code along with us onCode Along

View Slides

A killer application of large language models (LLMs) is answering questions about specific documents & datasets. This enables use cases such as customer service bots, question-answering systems about specific domains, & LLMs that can navigate data tasks.

In this code-along, Andrea Valenzuela, Computing Engineer at CERN, and Josep Ferrer Sanchez, Data Scientist at the Catalan Tourist Board, will walk you through building an AI system that can query your documents & data using LangChain & the OpenAI API. Throughout the code-along, they will share best practices for effectively loading & storing documents using LangChain, building a retrieval augmented generation pipeline for querying data, and building a question-answering bot.

Key Takeaways:

  • Learn how to effectively load & store documents using LangChain
  • Build a retrieval augmented generation pipeline for querying data
  • Build a question-answering bot that answers questions based on your documents

Additional Resources

Andrea’s Code Along from 2023 - [CODE ALONG] Optimizing GPT Prompts for Data Science

A tutorial from Andrea on Chatbots - [TUTORIAL] Building Context-Aware Chatbots: Leveraging LangChain Framework for ChatGPT

[TUTORIAL] A Beginner's Guide to Using the ChatGPT API

[SKILL TRACK] OpenAI Fundamentals

Topics
Related

tutorial

Building a GPT Model with Browsing Capabilities Using LangChain Tools

A tutorial on integrating Google SERP, DuckDuckGo, Wikipedia, and YouTube into GPT models using Python and LangChain tools.
Andrea Valenzuela's photo

Andrea Valenzuela

14 min

code-along

Building AI Applications with LangChain and GPT

In the live training, you'll use LangChain to build a simple AI application, including preparing and indexing data, prompting the AI, and generating responses.
Emmanuel Pire's photo

Emmanuel Pire

code-along

Introduction to Large Language Models with GPT & LangChain

Learn the fundamentals of working with large language models and build a bot that analyzes data.
Richie Cotton's photo

Richie Cotton

code-along

Prompt Engineering with GPT & LangChain

Learn prompt engineering best practices while using ChatGPT to analyze the sentiment of financial news headlines and Reddit comments.
Olivier Mertens's photo

Olivier Mertens

code-along

Building Multimodal AI Applications with LangChain & the OpenAI API

Combine the power of text and audio AI models to build a bot that answers questions about YouTube videos.
Korey Stegared-Pace's photo

Korey Stegared-Pace

code-along

Optimizing GPT Prompts for Data Science

This training will aid you in optimizing your personal usage of ChatGPT and when developing powered GPT applications.
Andrea Valenzuela's photo

Andrea Valenzuela

See MoreSee More