# GPT4 & LangChain - PDF를 위한 ChatGPT 챗봇 만들기

> Clean Markdown view of GeekNews topic #9010. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=9010](https://news.hada.io/topic?id=9010)
- GeekNews Markdown: [https://news.hada.io/topic/9010.md](https://news.hada.io/topic/9010.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-04-21T10:44:01+09:00
- Updated: 2023-04-21T10:44:01+09:00
- Original source: [github.com/mayooear](https://github.com/mayooear/gpt4-pdf-chatbot-langchain)
- Points: 16
- Comments: 0

## Topic Body

- 다수의 큰 PDF 파일을 LLM에 로딩해서 파일 내용에 대해 대화 가능  
- PDF를 넣으면 텍스트를 추출하여 다수의 Chunk로 만들고, Embedding을 생성하여 Pinecone 벡터스토어에 저장   
- 질문에 대해서 OpenAI Embeddings API로 문서의 관련 부분을 찾아서 GPT에 넣고 답변을 생성   
- LangChain + Pinecone + TypeScript + OpenAI Embeddings / GPT-3.5 & GPT-4 + Next.js

## Comments



_No public comments on this page._
