---
title: "Discussion on \"Extracting and Generating JSON Data with GPTs, LangChain, and Node.js\" | Hashnode"
description: "Discussion on \"Extracting and Generating JSON Data with GPTs, LangChain, and Node.js\". Manipulating Structured Data (from PDFs) with the Model behind ChatGPT, LangChain, and Node.js for Powerful AI-driven Applications"
url: "https://hashnode.com/posts/extracting-pdf-and-generating-json-data-with-gpts-langchain-and-nodejs/6458e63723cbf5920090eef3"
---

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

Discussion

# [Extracting and Generating JSON Data with GPTs, LangChain, and Node.js](https://horosin.com/extracting-pdf-and-generating-json-data-with-gpts-langchain-and-nodejs?utm_source=hashnode&utm_medium=feed)

Manipulating Structured Data (from PDFs) with the Model behind ChatGPT, LangChain, and Node.js for Powerful AI-driven Applications

May 8, 2023 · 6 min read · horosin.com  
Updated Apr 2, 2025  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#langchain](https://hashnode.com/tag/langchain)
-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Karol Horosin](https://hashnode.com/@horosin)

@horosin

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

Software Lead

Engineer, Builder, Writer

## Responses 4

Markdown supported · ⌘↵ to post

[Satwik Sv](https://hashnode.com/@Getintotech)

[Jan 14, 2024](https://hashnode.com/posts/extracting-pdf-and-generating-json-data-with-gpts-langchain-and-nodejs/6458e63723cbf5920090eef3/comment/65a41eb2dbad99e1b004c8cb)

Very Useful blog sir , I was searching for this everywhere , Sir , Im facing an error while using PDF Loader , While Using Next js , can you please clarify , thanking youu

[saishree godbole](https://hashnode.com/@godbole8597)

[Dec 11, 2023](https://hashnode.com/posts/extracting-pdf-and-generating-json-data-with-gpts-langchain-and-nodejs/6458e63723cbf5920090eef3/comment/657771fd20fa0b16a48c82f3)

Great article. How can we extend this to handle the entire PDF? I need to generate a JSON object with information scattered across multiple pages of the PDF

[Karol Horosin](https://hashnode.com/@horosin)

[Dec 23, 2023](https://hashnode.com/posts/extracting-pdf-and-generating-json-data-with-gpts-langchain-and-nodejs/6458e63723cbf5920090eef3/comment/657771fd20fa0b16a48c82f3#reply-6586d1788b45e5d9cff3fc86)

How big of a pdf? Several approaches possible

[Fandy Aditya Wirana](https://hashnode.com/@fandyadityaw)

[May 14, 2023](https://hashnode.com/posts/extracting-pdf-and-generating-json-data-with-gpts-langchain-and-nodejs/6458e63723cbf5920090eef3/comment/6460e66ee091cf9cab99ca3a)

This is great! So many possibilities

[Karol Horosin](https://hashnode.com/@horosin)

[May 14, 2023](https://hashnode.com/posts/extracting-pdf-and-generating-json-data-with-gpts-langchain-and-nodejs/6458e63723cbf5920090eef3/comment/6460e66ee091cf9cab99ca3a#reply-6460ef12624ab49e0871db24)

Yeah, it is inspiring, I have so many ideas for using this. I hope for advancements with local LLMs and hardware though, you can't apply this tech yo to the sensitive data where it would be very helpful
