---
title: "Discussion on \"Summarizing Documents Made Easy With Langchain Summarizer\" | Hashnode"
description: "Discussion on \"Summarizing Documents Made Easy With Langchain Summarizer\". Learn to use LangChain and OpenAI for effective LLM-based document summarization. Step-by-step guide to leverage the stuff, map_reduce, and refine chains."
url: "https://hashnode.com/posts/summarizing-documents-made-easy-with-langchain-summarizer/64685c6e175bc7031a935c40"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Summarizing Documents Made Easy With Langchain Summarizer](https://blog.futuresmart.ai/summarizing-documents-made-easy-with-langchain-summarizer?utm_source=hashnode&utm_medium=feed)

Learn to use LangChain and OpenAI for effective LLM-based document summarization. Step-by-step guide to leverage the stuff, map\_reduce, and refine chains.

May 20, 2023 · 8 min read · blog.futuresmart.ai  
Read the article

-   [#llm](https://hashnode.com/tag/llm)
-   [#langchain](https://hashnode.com/tag/langchain)
-   [#openai](https://hashnode.com/tag/openai)
-   [#summarization](https://hashnode.com/tag/summarization)

## Written by

[Subhadeep Choudhury](https://hashnode.com/@devSubho51347)

@devSubho51347 · Kolkata

  
[View profile](https://hashnode.com/@devSubho51347)

NLP Freelancer

## Responses 2

Markdown supported · ⌘↵ to post

[Suneel Kumar BVS](https://hashnode.com/@suneelbvs)

[May 24, 2023](https://hashnode.com/posts/summarizing-documents-made-easy-with-langchain-summarizer/64685c6e175bc7031a935c40/comment/646e6dd00617594bb4e51f38)

Thanks for the valuable post. Would like to know more about how many OPENAI tokens are required to digest the PDF and also to summarize and ask Q&A with documents?. Do you have any statistics of this tokens and its associated cost?

[Mhmd Khalil](https://hashnode.com/@moakh98)

[May 23, 2023](https://hashnode.com/posts/summarizing-documents-made-easy-with-langchain-summarizer/64685c6e175bc7031a935c40/comment/646ce5309098493346f6e9ca)

hi, this is an amazing blog Thanks!. However i have a question, i'm not able to pass the prompt variable into load\_summarize\_chain. it says "extra fields not permitted (type=value\_error.extra)"
