GPT-4 & LangChain Tutorial: How to Chat With A 56-Page PDF Document (w/Pinecone)
Chat with data
0:00 / 0:00
GPT-4 & LangChain Tutorial: How to Chat With A 56-Page PDF Document (w/Pinecone)
252 560 просмотров · 3 года назад
Chat with data
24,2 тыс. подписчиков
252 560 просмотров · 3 года назад
In this video we'll learn how to use OpenAI's new GPT-4 api to 'chat' with a 56-page PDF document based on a real supreme court legal case.
OpenAI recently announced GPT-4 (it's most powerful AI) that can process up to 25,000 words – about eight times as many as GPT-3 – process images and handle much more nuanced instructions than GPT-3.5.
You'll learn how to use LangChain (a framework that makes it easier to assemble the components to build a chatbot) and Pinecone - a 'vectorstore' to store your documents in number 'vectors'. You'll also learn how to create a frontend chat interface to display the results alongside source documents.
A similar process can be applied to other usecases you want to build a chatbot for: PDF's, websites, excel, or other file formats.
Visuals & Code:
🖼 Visual guide download + github repo:
https://github.com/mayooear/gpt4-pdf-...
Twitter: / mayowaoshin
Website: https://www.mayooshin.com/
Send a tip to support the channel: https://ko-fi.com/mayochatdata
Timestamps:
00:03 PDF demo (56-page Legal PDF doc)
02:05 Visual overview of pdf chatbot architecture
06:56 Code walkthrough pt.1
11:10 Pinecone dashboard + setup
13:43 Code walkthrough pt.2
#gpt4 #law #openai #legal #langchain #chatgpt #gpt #largelanguagemodels #langchainjavascript #langchaintypescript #promptengineering #langchaintutorial #langchainchatbot