GPT-4 Tutorial: How to Chat With Multiple PDF Files (~1000 pages of Tesla's 10-K Annual Reports)

Ғылым және технология

In this video we'll learn how to use OpenAI's new GPT-4 api to 'chat' with and analyze multiple PDF files. In this case, I use three 10-k annual reports for Tesla (~1000 PDF pages)
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 (this is the base template used for this demo):
github.com/mayooear/gpt4-pdf-...
Twitter: / mayowaoshin
Website: www.mayooshin.com/
Send a tip to support the channel: ko-fi.com/mayochatdata
Timestamps:
01:02 PDF demo (analysis of 1000-pages of annual reports)
06:01 Visual overview of the multiple pdf chatbot architecture
17:40 Code walkthrough pt.1
25:15 Pinecone dashboard
28:30 Code walkthrough pt.2
#gpt4 #investing #finance #stockmarket #stocks #trading #openai #langchain #chatgpt #langchainjavascript #langchaintypescript #langchaintutorial

Пікірлер: 369

  • @chatwithdata
    @chatwithdata Жыл бұрын

    Timestamps: 01:02 PDF demo (analysis of 1000-pages of annual reports) 06:01 Visual overview of the multiple pdf chatbot architecture 17:40 Code walkthrough pt.1 25:15 Pinecone dashboard 28:30 Code walkthrough pt.2

  • @johnpaulpayopay1074

    @johnpaulpayopay1074

    Жыл бұрын

    Instead of using an OpenAI API, can use local LLMs such as llama, alpaca, vicuna, koala

  • @MidoBroski

    @MidoBroski

    Жыл бұрын

    The GitHub repository in the description does not include this multi pdf bot? Could we get the source code?

  • @chineseoutlet

    @chineseoutlet

    Жыл бұрын

    @@johnpaulpayopay1074 Agreed. I tried to use Vicuna7B to replace the OpenAI(my machine don't run 13B). It works OK, except it can't do query on the entire PDF. Like when I ask it to summarise the whole book, it just say "I don't know" trying to find ways to fix it. Any one here know how to fix it, please let me know.

  • @tangdavid3317

    @tangdavid3317

    Жыл бұрын

    Do you know how to fix this? - error Error: Cannot find module 'next/dist/server/future/route-modules/route-module.js'

  • @TheRonellCross
    @TheRonellCross Жыл бұрын

    This tutorial is legit the best. Custom Chatbots are going to be a huge biz op.

  • @JohnnyLonghorn
    @JohnnyLonghorn Жыл бұрын

    Thanks for this, your vids are some of the best on YT now for this type of thing as right now in this domain there is only two words for all the content out there - information overload!!! I am still going through your prev video on PDF ingestion and processing, thank you for sharing your invaluable information in a style that makes it understandable.

  • @yajatgulati
    @yajatgulati Жыл бұрын

    This is the best tutorial I've seen on embeddings search, the applications of this are endless, really excited to start building. Thank you so much for the work that you're doing :)

  • @duhai1836
    @duhai1836 Жыл бұрын

    You are great at teaching the entire process! Please continue this series :) Thank you!

  • @CowCoder
    @CowCoder Жыл бұрын

    Just found this channel, 16k subs now, not for long. You are making great tutorials that I will say I should have made months ago. Keep making videos you can hit 2m subs in less than a year if you make content more relevant and useful to a wider audience and more entertaining

  • @byte_easel
    @byte_easel Жыл бұрын

    The excalidraw documents are invaluable to the presentation and really help visualize the flow of data between the pinecone database and langchain is used to make it all work. Thanks a lot for those diagrams, your efforts are not unrecognized. The possibilities of this are literally endless

  • @Lutherbaer
    @Lutherbaer Жыл бұрын

    Thanks for the detailed presentation and explanation of your concept! This is really exciting to learn - subscription is set, I'm looking forward to more videos. Thanks mate!

  • @ADHDOCD
    @ADHDOCD Жыл бұрын

    Woah! 😱These diagrams make it so much easier to understand concepts better than other KZread videos! Thanks for spending so much time and effort!

  • @Jingizz

    @Jingizz

    Жыл бұрын

    yes its so helpful to understand these concepts

  • @BlaziNTrades
    @BlaziNTrades Жыл бұрын

    This is amazing man. Thank you! It will take a while to fully understand how to implement this for myself but I appreciate the knowledge.

  • @astroid-ws4py
    @astroid-ws4py Жыл бұрын

    Cool stuff, It is just unbelievable how much depth and breadth all the computing field has become, Too stretched out and too spread, Too much subjects for to explore, Chating with books is a cool idea that could really help us access and organize scientific human knowledge in all fields.

  • @resistance_tn
    @resistance_tn Жыл бұрын

    As always, you're delivering awesome content !!

  • @clockworkOMNI
    @clockworkOMNI Жыл бұрын

    Thank you for this contribution to the common good. You are the man.

  • @ChrisAllenMusic
    @ChrisAllenMusic Жыл бұрын

    Thanks! Terrific walk-through, really appreciate this tutorial!

  • @Kryptikoo
    @Kryptikoo Жыл бұрын

    Thank you for sharing, please do more, your explanation is so easy to understand !

  • @harischsood5479
    @harischsood5479 Жыл бұрын

    so interesting. as a non -techie trying to implement this is wild but fascinating

  • @neerajkulkarni6506
    @neerajkulkarni6506 Жыл бұрын

    This is an amazing tutorial! More videos like this please.

  • @rugerdie4054
    @rugerdie4054 Жыл бұрын

    Brother...! This is what I am talking about! My sellers are looking for this kind of capability for research as well as for searching our internal content management system.

  • @yudhaesap
    @yudhaesap Жыл бұрын

    Thank you so much. This is exactly what I need. To talk with a document, is kinda insane.

  • @tslg1988
    @tslg1988 Жыл бұрын

    Thank you for your great videos, I really like them. One UX improvement comment: Try serving the PDFs as static content with your web application, then when you append #page=42 to the PDF's link, a user can go directly to that page in their browser. Very easy to implement and your users will save a copy and paste and 3 clicks.

  • @chatwithdata

    @chatwithdata

    Жыл бұрын

    Nice idea, thanks.

  • @rhythmgaidhani2149
    @rhythmgaidhani2149 Жыл бұрын

    best video i found for my personal project on the internet

  • @elihuvillaraus3651
    @elihuvillaraus3651 Жыл бұрын

    Great videos! Im up for the course!

  • @user-gi8wq9no6b
    @user-gi8wq9no6b Жыл бұрын

    Thank you for the walkthrough!

  • @JasonMelanconEsq
    @JasonMelanconEsq Жыл бұрын

    Can you please show how the front end connects and how to build it? This is definitely the missing piece of the puzzle for me. Thanks for the videos. They're great!

  • @infocentrousmajac
    @infocentrousmajac Жыл бұрын

    Awesome stuff... Excellent video!

  • @allthenewsthatsfittomock6578
    @allthenewsthatsfittomock6578 Жыл бұрын

    First off, very well explained, great detail in the video - thank you for taking the time to put this togeather. I was wondering, for use-cases where the documents you are working with should remain private... is there any way to create the embeddings with some locally run model, rather than sending the raw document text in chunks to OpenAI?

  • @SwingingInTheHood
    @SwingingInTheHood Жыл бұрын

    Thank you for this excellent contribution! It has really simplified this process for me greatly. One question: The first step (well, second step) in Phase II of your flowchart is to combine the Chat History with New Question. The next step is to submit this to an LLM to get a new standalone question. Why do you do add this step instead of immediately vectorizing the Chat History with the New Question. What does this "new standalone question" look like? If this is explained in this video, or another, could you please include the url? I'm kind of new to this. Thanks!

  • @argniests5357
    @argniests5357 Жыл бұрын

    Hi there, what an awesome video. Will be trying this out this week, asap. I am wondering how long have you been coding, and more specifically how long have you been working with technology like in this video?

  • @mehdihasan-wy7vb
    @mehdihasan-wy7vb Жыл бұрын

    awesome tutorial, Thank you 🙂

  • @rajpdus
    @rajpdus Жыл бұрын

    I like how you diagram and explain things. Keep going. Any chance of having your template for diagrams for our personal use :)

  • @ulisesmartinez2792
    @ulisesmartinez2792 Жыл бұрын

    Solid work!

  • @ColinTimmins
    @ColinTimmins Жыл бұрын

    Fantastic stuff my friend.

  • @NadaaTaiyab
    @NadaaTaiyab Жыл бұрын

    Great job. Thank you!

  • @satyaschannel4391
    @satyaschannel43916 ай бұрын

    Hey, the tutorial is one of teh best of its king in this segment. Can please share the repo link to this multi pdf one. Its very useful for others to work on.

  • @svgtdnn6149
    @svgtdnn6149 Жыл бұрын

    Hi, this is amazing! thanks for the contents Wondering if you have any idea on the scalability and and cost of having such a system?

  • @anujcb
    @anujcb Жыл бұрын

    @Chat with data , do you mind sharing the meta data version of the code? where you chunk and tag the documents by year and page number. I am really interested in what you showed in the demo. Impressive work!!!

  • @kasvith
    @kasvith Жыл бұрын

    Awesome tutorial

  • @zmjerry
    @zmjerry Жыл бұрын

    This is awesome man! Thanks for sharing!

  • @sf0101
    @sf0101 Жыл бұрын

    This is golden 💛

  • @joeappleton3479
    @joeappleton3479 Жыл бұрын

    thanks for this! great vid!

  • @matte3333
    @matte3333 Жыл бұрын

    Thanks for this. It would be helpful to see your CustomQAChain Class. How do I tell Pinecone to only search through specific namespaces?

  • @sathithyayogi99
    @sathithyayogi995 ай бұрын

    you are Legend brother

  • @aryanphilip1527
    @aryanphilip1527 Жыл бұрын

    Will you be releasing the codes for this one? Loved the earlier videos.

  • @JWC-uq1bs
    @JWC-uq1bs Жыл бұрын

    Hi Mayo, is there a way to include paramaters in the conversationchain for maximum length, frequency penalty & presence penalty? Apologies if it's simple but new to this. With your instructions + video, i was able ingest my own PDF's. It's a great start & now i'm looking to optimise the outputs.

  • @todaydailyeveryday
    @todaydailyeveryday Жыл бұрын

    Hi, great tutorial! I was wondering if it were able to read the financial reports such as the net income, debt etc.. within the balance sheet or income statement?

  • @markoguru
    @markoguru6 ай бұрын

    Really nice work, thanks! How about loading files which are located remotely, like S3 bucket?

  • @mspraja1887
    @mspraja1887 Жыл бұрын

    great tutorial, can we increase the response token limit?

  • @braver.sensei9808
    @braver.sensei9808 Жыл бұрын

    This is massive!

  • @suryansh70
    @suryansh70 Жыл бұрын

    awesome tutorial thanks for making this

  • @StanleySalvatierra
    @StanleySalvatierra Жыл бұрын

    Cool!! , Thank you!!!

  • @hamzariazuddin424
    @hamzariazuddin424 Жыл бұрын

    Sorry im new to this channel looks amazing. How are you getting that chatbot? where can i find it? Amazing channel and information you are providing though

  • @TheSshahrukh
    @TheSshahrukh Жыл бұрын

    @chatwithdata thanks for sharing this demo. In my line of work we sometimes deal with sensitive and non-public data. What risk factors are associated with analyzing sensitive data using GPT apis?

  • @Steve-js7bp
    @Steve-js7bp Жыл бұрын

    Are you by any chance running a function that strips out the pdf: object [] from the metadata? For some reason when I try to upload my PDF, there is a pdf: object [] that is causing a Pinecone error. I noticed that you have pdf-parse as a dependency, but I can't quite see how this is working. Keep up the great work by the way!

  • @merozemory
    @merozemory Жыл бұрын

    Great video :) What do you think about using metadata filtering instead of separating data by namespace? By giving users the ability to select metadata filters, you can provide a personalized search experience with precise filters for two or more metadata types, without the need for feature extraction from text. Keep up the good work!

  • @jazzyj2899

    @jazzyj2899

    Жыл бұрын

    have you tried this? i have tried it in python. at least I've tried metadata filtering with the new SelfQueryRetriever, and it did not work. There is a Structured Query component using comparators that does not allow it to work without some extension of the class and modifcation. Let me know if interested in hashing this out together.

  • @DSJOfficial94
    @DSJOfficial94 Жыл бұрын

    this is so impressive

  • @cigir2023
    @cigir2023 Жыл бұрын

    Thank you bro... Your are a F*** genius!!!.. This is one of those things that will radically chage the world in a very short time

  • @Antonio-cn3ji
    @Antonio-cn3ji Жыл бұрын

    Amazing job! When database as source? Thanks

  • @DaveShap
    @DaveShap Жыл бұрын

    Great work! Now whenever people ask me how to do this I will just point at this video :D Cheers, thanks for shareing

  • @thetransferaccount4586
    @thetransferaccount4586 Жыл бұрын

    this was great

  • @thedude9270
    @thedude9270 Жыл бұрын

    This tutorial is mindblowing. How much does it cost to feed chatgpt all of the tokens from the context document though?

  • @Grahfx
    @Grahfx Жыл бұрын

    I don't think this is the right approach. It doesn't know enough context on the whole document. When you hit a prompt, he will match a chunk to your prompt, but what if the answer is contained in the context of let say 200 pages ? You could make something clever. You could aggregate chunk togethers asking the LLM to summarize and group them in "meta chunks", you could repeat the process until all years are contained into a single max limit tokens batch. Then, with the meta Data, you'll be able to perform a much more powerful search over the corpus, providing much more context to your LLM with different level of aggregation.

  • @user-jc3ys1yc2n

    @user-jc3ys1yc2n

    Жыл бұрын

    Something like that already exists and is called a “recursive summarizer”. The hard part is figuring out how to actually perform search over the recursively summarized documents without invoking the GPT api an unreasonable amount of times except during preprocessing. I am currently doing research in the area of passage retrieval and would love to know your thoughts on this and possibly experiment with some of your ideas.

  • @Grahfx

    @Grahfx

    Жыл бұрын

    ​@@user-jc3ys1yc2n Well, I had this idea while having my morning coffee, but I haven't conducted any deep research to support it. However, as you mentioned, there may be potential issues that arise. Have you considered using GPT4 to help solve this problem? Personally, I anticipate having to address this issue myself because I plan to summarize big HR data.

  • @JanBadertscher

    @JanBadertscher

    Жыл бұрын

    you lose more and more information by recursive summarization. better to use embeddings, so the LLM knows the whole context of your documents, no matter how many...

  • @Grahfx

    @Grahfx

    Жыл бұрын

    @@JanBadertscher No, of course, it doesn't have complete knowledge, that's the main issue. It only has partial knowledge based on a vector match. This is why it provides inadequate responses when the prompt is not very specific. It is incapable of extracting critical information that comes from reading the entire context. A human expert is currently better to do this.

  • @chatwithdata

    @chatwithdata

    Жыл бұрын

    You can control the `k` returned source documents up to 1000 if you want to via Pinecone + gpt-4 context is 8k, so you can cover a lot of context across the doc.

  • @GeekFromPH
    @GeekFromPH Жыл бұрын

    Looking forward to LangChain Agents.

  • @georgesanchez8051
    @georgesanchez8051 Жыл бұрын

    Your Excali diagrams are invaluable too. I’ve been trying to get into the habit of creating similar diagrams. Do you usually come up with them before you code, make them manually as you go, or put it together once you’re done?

  • @vinosamari

    @vinosamari

    Жыл бұрын

    I picked up the habit of doing it before and it helped tremendously. You might get sucked in for a while but it’ll help streamline the process

  • @chatwithdata

    @chatwithdata

    Жыл бұрын

    Yeah usually before because it helps me think through how to solve the problem

  • @picklenickil

    @picklenickil

    Жыл бұрын

    Anything fancier than party tricks requires System design and engineering. Logic is almost always beautiful on paper

  • @gambaweb

    @gambaweb

    Жыл бұрын

    This is like having the architecture of your system m. Imo it is a must to have. Good job meanwhile

  • @PizzaLord

    @PizzaLord

    Жыл бұрын

    @@chatwithdata what tool do you use for the diags?

  • @despo13
    @despo13 Жыл бұрын

    bro which keyboard do you use, and thanks for this detailed video

  • @greendsnow
    @greendsnow Жыл бұрын

    Can you please use other Vector DB's too for the same example?

  • @user-tq2xg8gf3c
    @user-tq2xg8gf3c Жыл бұрын

    Thanks for the great video, I'm using it very well. When I use the code you posted on GitHub based on pinecone, is there any limit to the number of PDF files/total capacity/total number of sides, etc.? It worked fine when the total size of multiple PDF files was around 84MB, but when it went up to 128MB, I got a SocketError:other side closed error in npm run ingest, so adding a PDF file to an already existing vector store doesn't seem to work well. Do you think I need to adjust the timeout for undici to be a few times longer?

  • @pritech8302
    @pritech8302Ай бұрын

    Thankyou so much

  • @vetonrushiti19
    @vetonrushiti1913 күн бұрын

    Hi, thank you for this great architecture, but I wanted to ask if there is a tokenization phase that happens here?

  • @terry2567
    @terry2567 Жыл бұрын

    Cool stuff!May I ask how to use openai to generate new standalone questions from chat history and new question?😂Could you please be more specific?

  • @IStMl
    @IStMl Жыл бұрын

    Would building an app that allows doing all this through a simple UI (and with other features) infringe the ToS?

  • @alivohra254
    @alivohra254 Жыл бұрын

    Hey! Cool video!! Have you added functionality for multiple pdfs to the GitHub repo? 🎉

  • @nicolofranceschi
    @nicolofranceschi Жыл бұрын

    hi, let try adobe pdf api , you can improve a lot your embeddings with that , the api auto detaching paragraph , title , table and image , and you can superpower your stuff , also the chunk in not more no sens text but is p or H1 ecc that have sense and you can alt give weight to data , for example h1 is more important of a end page little paragraph

  • @LimabeanStudios
    @LimabeanStudios Жыл бұрын

    I work in an academic research setting researching an extremely niche subject in material science and these kind of tools are what I have been waiting for. I can't wait for us to be able to upload the papers and books that contain all current available knowledge on the topic and be able to interact with that knowledge pool.

  • @PizzaLord

    @PizzaLord

    Жыл бұрын

    I already built this tool. If you want to be a tester, let me know.

  • @bendrybrough4362

    @bendrybrough4362

    Жыл бұрын

    @@PizzaLord I would like to.

  • @LimabeanStudios

    @LimabeanStudios

    Жыл бұрын

    @@PizzaLord I would certainly like to hear more

  • @ahmeda8042

    @ahmeda8042

    Жыл бұрын

    @@PizzaLord I would like to.

  • @tylerd6962

    @tylerd6962

    Жыл бұрын

    ​@@PizzaLord how do I become a tester

  • @user-vi3im3tu8r
    @user-vi3im3tu8r Жыл бұрын

    This video and channel are awesome! I'm working on a version of this demo in python, would you mind adding an Apache or MIT license to the gpt4-pdf-chatbot-langchain repo so I can share without worrying about any weird copyright issues with github? (Accidentally posted this on the wrong video earlier...)

  • @software-sage
    @software-sage Жыл бұрын

    Does this only work for $TSLA? I would love to use this program for other companies. Thanks and wonderful tutorial 👍

  • @MehdiAllahyari
    @MehdiAllahyari Жыл бұрын

    Great video. But the problem with your solution is you have hit the OpenAI api at least 5 times and it would make it costly and not scalable. Other than that, a good project.

  • @chatwithdata

    @chatwithdata

    Жыл бұрын

    Hmm where are you getting 5 from? The retrieval is from Pinecone, which is very cheap.

  • @jennyxu3747
    @jennyxu3747 Жыл бұрын

    great video! can we see the source code for this? would love to see how extractYearFromQuestion is implemented

  • @user-lt7cv7xg8h
    @user-lt7cv7xg8h Жыл бұрын

    Will you be able to share the architectural diagram you provided in this video?

  • @davidaktary
    @davidaktary Жыл бұрын

    When will you release the code from this walk through (not just the "base template", but the actual code here that uses namespaces)? Also, do you know of any way to prioritize what source it uses? For example, if we have 3 PDFs for 2021, 2022, and 2023, and each declares a new color of the year, and I simply ask "what is the color of the year?" how can I ensure it gives me the most recent answer?

  • @justinc2114
    @justinc2114 Жыл бұрын

    Can this be wrapped into a web app package for ease of use?

  • @suniyamokipallo2571
    @suniyamokipallo2571 Жыл бұрын

    would be great if u could build this full tutorial in just python!

  • @eurasiantreesparrow7547
    @eurasiantreesparrow7547 Жыл бұрын

    I wonder if something like this could be used to read/analyze/edit entire codebases with gpt-4.

  • @calebperkins8776
    @calebperkins8776 Жыл бұрын

    Why not use Embeddings as the documents title so that instead using Gpt to do a search of the exact name space, it could do a semantic search of name spaces similar to the initial prompt, thus finding things relevant more effectively. Thoughts?

  • @alexsov
    @alexsov Жыл бұрын

    thank you! not clear how you select namespaces (pdfs). just by year in request? code in video not same as in github?

  • @MateuszTrojak
    @MateuszTrojak Жыл бұрын

    Great tutorial! Thanks for that. What about privacy concerns? Imagine we have a company with a lot of internal documents and wanted to use gpt to search through it? When training a gpt based on this as an external api it has access to docs, so I’m wandering what privacy department will say.

  • @chatwithdata

    @chatwithdata

    Жыл бұрын

    Yes this is true, but large organizations will likely use the Azure OpenAI service which is tailored for compliance, privacy etc.

  • @MateuszTrojak

    @MateuszTrojak

    Жыл бұрын

    @@chatwithdata So what about small startups? :)

  • @chatwithdata

    @chatwithdata

    Жыл бұрын

    @@MateuszTrojak Could try open source alternatives like gpt-j but I haven't tested the quality.

  • @rathishmenon1612
    @rathishmenon16122 ай бұрын

    Very nice video, can we use metadata filter instead of namespace , will it work? Also could you please share me your main.ts , fewshotprompt template..

  • @jcims
    @jcims Жыл бұрын

    What are your thoughts on allowing the model to compose additional questions after the first collection of document data is supplied from the search results? Similar to how the agent flow works in langchain?

  • @FelixLanzalaco

    @FelixLanzalaco

    Жыл бұрын

    you can setup gpt to keep iteratively asking questions to re-engineer the prompt. Search for ChaGTP the one prompt to rule them all.

  • @soumojitguhamajumder3143
    @soumojitguhamajumder3143 Жыл бұрын

    Does anybody know if they let you retrain GPT4 with specific data ? I'm talking about something along the lines of transfer learning.

  • @ArjanDuijs
    @ArjanDuijs Жыл бұрын

    How is the amound of tokes used? embedding it and querying it?

  • @abdullaansari7163
    @abdullaansari71634 ай бұрын

    Very nice information, can you please create a video for python based for the same? It will be helpful thanks in advance😍😍😍

  • @Phrog64
    @Phrog64 Жыл бұрын

    I'm extremely interested in AI and Language Models, but I have a limited understanding of where to start. I was wondering if you'd be able to recommend any programs, courses, or tutorials for those in a similar position to me. Thank you, and what an interesting video this was!

  • @henry7434

    @henry7434

    Жыл бұрын

    Maybe read the transformer, Bert and gpt papers first?

  • @1986xuan

    @1986xuan

    Жыл бұрын

    He has the course opened now. You will find the link the description below this video

  • @rajns8643

    @rajns8643

    Жыл бұрын

    If you have a basic understanding of multivariable calculus, probstats and linear algebra; see few videos on ANN, then RNN, then transformers and BERT, and then finally LLMs. Its a long way but this way you would be able to understand it more deeply and you would be able to understand the recent developments in LLMs more clearly.

  • @prednosttrake
    @prednosttrake Жыл бұрын

    Question: instead of PDF, could you point it to the database to do the same? How would one accomplish that? Thinking of a BI tool or an ERP. I think digitizing PDFs will be great for organizations that have technical machinery - example field crew sales - if they need to answer the technical question, it can be input (via voice) into GPT and reference company information. One would need to make sure it is secure (ie ChatGPT cannot store what it reads).

  • @danielmaturana9171
    @danielmaturana9171 Жыл бұрын

    Hi, I found it pretty nice solution to this issue of filtering the database to search in specific documents when it is needed. I wondering if you tried to do it with Chroma? I am being pursuing something similar but I am using a selfqueryretrieval, bassically the chain receive the question and generate the retrieval to the vecstore adding some filters, in this case would be 'year':2020 for example. However it doesn't take the time to search with each filter, it just filter with an or statement. I like your solution but it is also true that you need to hardcode the names of the spaces. Maybe you can have another chain that create the name of the space automatically. Well, finally, I tried to see the code in the github, but looks like it is not updated.

  • @tapos999
    @tapos999 Жыл бұрын

    Discord link invalid. Could you reshare? I am also looking for the latest diagram you were showing on the video. In git, I found one PDF scenario. Is it possible to re-upload that image? Thanks for the great content

  • @kimvanrompay8018
    @kimvanrompay8018 Жыл бұрын

    How do you connect your openai api with the pinecone vectorstore

  • @zapy422
    @zapy422 Жыл бұрын

    what scrapping all information on a website and feeding it into chatgpt or chatgpt can do it all by itself?

  • @Iconic-scenes
    @Iconic-scenes Жыл бұрын

    Thanks, but I am wondering is GPT-4 analysing a specific Chuck of a document or the whole document? Because in the diagramme is written specific document is sent to GPT-4 and we know that we have a token limitation

  • @silberlinie
    @silberlinie Жыл бұрын

    are the years hard wired in your code?

  • @user-lt7cv7xg8h
    @user-lt7cv7xg8h Жыл бұрын

    How will we be able to change the code to use weaviate instead of pinecone?

  • @MidoBroski
    @MidoBroski Жыл бұрын

    The GitHub repository in the description does not include this multi pdf bot? Could we get the source code?

Келесі