Our new LangChain Academy Course Deep Research with LangGraph is now live! Enroll for free.
OSS (v1-alpha)
LangChain and LangGraph
import { ChatGPTLoader } from "@langchain/community/document_loaders/fs/chatgpt"; const loader = new ChatGPTLoader("./example_data/example_conversations.json"); const docs = await loader.load(); console.log(docs);
import { ChatGPTLoader } from "@langchain/community/document_loaders/fs/chatgpt"; const loader = new ChatGPTLoader( "./example_data/example_conversations.json", 1 ); const docs = await loader.load(); console.log(docs);