Member-only story

How to Build a Custom Summarization App with LangChain and Streamlit

Lucas Soares
5 min readJun 14, 2023

--

One of my favorite applications of modern Large Language Models is to create summaries of PDFs.

More than just any summary, I want the ability to create customizable summaries that can fit any research or learning need.

In this article, you’ll learn how to build a simple custom summarization app, using LangChain and Streamlit.

If you prefer video, check out my Youtube video on this topic here:

Steps to Build a Summarization App with Custom Prompts

This app will allow users to create custom prompts to summarize PDF files using AI-powered language models like ChatGPT and GPT-4. The idea is to provide an interface for creating custom summaries out of any PDF file.

Steps

  1. Import dependencies
  2. Define the helper functions

--

--

Lucas Soares
Lucas Soares

Written by Lucas Soares

AI Engineer. I write about AI | Tools| Data Science | Productivity. Subscribe to my Youtube channel: https://www.youtube.com/@automatalearninglab/videos

Responses (2)