On this video we’ll discover ways to use OpenAI’s new GPT-4 api to ‘chat’ with a 56-page PDF doc primarily based on an actual supreme court docket authorized case.
OpenAI lately introduced GPT-4 (it is strongest AI) that may course of as much as 25,000 phrases – about eight occasions as many as GPT-3 – course of photographs and deal with way more nuanced directions than GPT-3.5.
You may discover ways to use LangChain (a framework that makes it simpler to assemble the parts to construct a chatbot) and Pinecone – a ‘vectorstore’ to retailer your paperwork in quantity ‘vectors’. You may additionally discover ways to create a frontend chat interface to show the outcomes alongside supply paperwork.
An identical course of might be utilized to different usecases you wish to construct a chatbot for: PDF’s, web sites, excel, or different file codecs.
Visuals & Code:
🖼 Visible information obtain + github repo:
https://github.com/mayooear/gpt4-pdf-chatbot-langchain/tree/feat/vectordbqa
Chat with information e-newsletter: https://mayo-a.ck.page/59b4fbfc99
Guide a 1 hour AI session session: https://calendly.com/mayochainprompt/60min
Customized AI improvement options: https://www.siennaianalytics.com
Twitter: https://twitter.com/mayowaoshin
Ship a tip to help the channel: https://ko-fi.com/mayochatdata
Timestamps:
00:03 PDF demo (56-page Authorized PDF doc)
02:05 Visible overview of pdf chatbot structure
06:56 Code walkthrough pt.1
11:10 Pinecone dashboard + setup
13:43 Code walkthrough pt.2
#gpt4 #legislation #openai #authorized #langchain #chatgpt #gpt #largelanguagemodels #langchainjavascript #langchaintypescript #promptengineering #langchaintutorial #langchainchatbot