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

blog

What is OpenAI's GPT-4o? Launch Date, How it Works, Use Cases & More

Discover OpenAI's GPT-4o and learn about its launch date, unique features, capabilities, cost, and practical use cases.
Richie Cotton's photo

Richie Cotton

6 min

blog

AI Ethics: An Introduction

AI Ethics is the field that studies how to develop and use artificial intelligence in a way that is fair, accountable, transparent, and respects human values.
Vidhi Chugh's photo

Vidhi Chugh

9 min

podcast

The 2nd Wave of Generative AI with Sailesh Ramakrishnan & Madhu Iyer, Managing Partners at Rocketship.vc

Richie, Madhu and Sailesh explore the generative AI revolution, the impact of genAI across industries, investment philosophy and data-driven decision-making, the challenges and opportunities when investing in AI, future trends and predictions, and much more.
Richie Cotton's photo

Richie Cotton

51 min

tutorial

Troubleshooting The No module named 'sklearn' Error Message in Python

Learn how to quickly fix the ModuleNotFoundError: No module named 'sklearn' exception with our detailed, easy-to-follow online guide.
Amberle McKee's photo

Amberle McKee

5 min

tutorial

Phi-3 Tutorial: Hands-On With Microsoft’s Smallest AI Model

A complete guide to exploring Microsoft’s Phi-3 language model, its architecture, features, and application, along with the process of installation, setup, integration, optimization, and fine-tuning the model.
Zoumana Keita 's photo

Zoumana Keita

14 min

tutorial

How to Use the Stable Diffusion 3 API

Learn how to use the Stable Diffusion 3 API for image generation with practical steps and insights on new features and enhancements.
Kurtis Pykes 's photo

Kurtis Pykes

12 min

See MoreSee More