To Data & Beyond

To Data & Beyond

Share this post

To Data & Beyond
To Data & Beyond
Hands-On LangChain for LLMs App: Answering Questions From Documents

Hands-On LangChain for LLMs App: Answering Questions From Documents

Youssef Hosni's avatar
Youssef Hosni
Jan 12, 2024
∙ Paid
4

Share this post

To Data & Beyond
To Data & Beyond
Hands-On LangChain for LLMs App: Answering Questions From Documents
1
Share

In the previous articles of this series, we discussed how to load documents, split them, and then find documents related to a specific question. Now, let’s take the next step: using those documents and the original question to get an answer from a language model. 

This article will walk you through the process, explaining different ways to do question answering with the documents you’ve found. After sorting out storage and getting the right data, we’re now at the point where we use a language model to find the answers we need.

Table of Contents:

  1. Overall Workflow for Retrieval Augmented Generation (RAG) 

  2. Getting Started & Setting Environment Variables 

  3. Prompt Development for RetrievalQA 

  4. RetrievalQA with Map Reduce & Refined Chain

  5. RetrievalQA Limitations 


My E-book: Data Science Portfolio for Success Is Out!

Youssef Hosni
·
September 15, 2023
My E-book: Data Science Portfolio for Success Is Out!

I recently published my first e-book Data Science Portfolio for Success which is a practical guide on how to build your data science portfolio. The book covers the following topics: The Importance of Having a Portfolio as a Data Scientist How to Build a Data Science Portfolio That Will Land You a Job?

Read full story

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Youssef Hosni
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share