No video

Langchain PDF App (GUI) | Create a ChatGPT For Your PDF in Python

  Рет қаралды 164,202

Alejandro AO - Software & Ai

Alejandro AO - Software & Ai

Күн бұрын

Пікірлер: 523
@alejandro_ao
@alejandro_ao 7 ай бұрын
💬 Join the Discord Help Server: link.alejandro-ao.com/981ypA ❤ Buy me a coffee (thanks): link.alejandro-ao.com/YR8Fkw ✉ Join the mail list: link.alejandro-ao.com/o6TJUl
@legendsanimexy8217
@legendsanimexy8217 6 ай бұрын
Do I need to buy chatgpt API to build this project?
@blackhat965
@blackhat965 Жыл бұрын
I built something similar a while back. You should teach people how to store vectors locally. That would drastically reduce the cost.
@atultiwari88
@atultiwari88 Жыл бұрын
Hi, I am also trying to make a Q&A chatbot based on my single custom document of about 500 pages. But the vectors are quite costly for me. Can you please help with a workaround. I have explained my use case in the comments too, but so far no answer. Thank you.
@achmadnorcholis2387
@achmadnorcholis2387 Жыл бұрын
I also want to know about it 😅
@chiefwiki
@chiefwiki Жыл бұрын
I've watched numerous GPT for PDF KZfaq tutorials, but yours stands out for its clarity, conciseness, and thorough explanations. Thanks, Alejandro! I've subscribed and eagerly await more content from you.
@alejandro_ao
@alejandro_ao Жыл бұрын
You’re far too kind! Thanks :) I’m glad you found it useful! I’ll keep making videos like this 💪🏼
@goforit5
@goforit5 Жыл бұрын
I agree! I’ve been watching videos for months and this one is so clear for someone who was not a coder previously. I’ve subscribed too and will go back and watch prior videos. Thanks Alejandro!
@handler007
@handler007 Жыл бұрын
tip: you api key is a firewall hole
@python360
@python360 Жыл бұрын
100% agree with @chiefwiki ! Great tutorial and appreciate the process diagram ✈
@mohameddarwish1121
@mohameddarwish1121 11 ай бұрын
انا ايضا! me too!
@seanfeng5448
@seanfeng5448 Жыл бұрын
I really appreciate the tiny details and explanations like "since we're using langchain you have to set the variable like this" etc. Very helpful in understanding "why" in addition to "how". Cheers
@alejandro_ao
@alejandro_ao Жыл бұрын
Thanks! I try to keep it as approachable as possible so everyone can learn it 😊
@monarch9586
@monarch9586 Жыл бұрын
@@alejandro_ao Hi can you help me resolve this error --> No module named 'altair.vegalite.v4', I am not able to start streamlit also can you make a video on environment setup. Please i really need to submit the project within one week
@dw8200
@dw8200 Жыл бұрын
Thank you so much for the very nice tutorial. OpenAI has "gpt-3.5-turbo" available which is much cheaper and should have better performance than its default model here, we just need to specify the model as this: llm = OpenAI(model_name="gpt-3.5-turbo")
@SoftYoda
@SoftYoda Жыл бұрын
what is the default model used ?
@JacobSamro
@JacobSamro Жыл бұрын
@@SoftYoda Its text-davinci-003
@lucasfescina
@lucasfescina Жыл бұрын
There ins't any free model?
@scottregan
@scottregan Жыл бұрын
Is it possible for me to use GPT-4 if I am willing to pay for it? Like if I sign up for the GPT-4 thing (not the chat-plus which I already have) will I get a GPT-4 API for use in a custom bot built with langchain??
@dw8200
@dw8200 Жыл бұрын
as of 2023-06-27, LangChain has set the default model to gpt-3.5-turbo. No need to do the above setting. There are other open-source models available right now, such as flan-alpaca-large. llm = HuggingFaceHub(repo_id="declare-lab/flan-alpaca-large", model_kwargs={"temperature":0, "max_length":512})
@ReddSpark
@ReddSpark Жыл бұрын
Holy smokes - the conciseness of you code given all that it's doing behind the scenes is breathtaking! Impressive!
@alejandro_ao
@alejandro_ao Жыл бұрын
thanks mate!
@zikkk7578
@zikkk7578 Жыл бұрын
I stumbled upon this channel by accident - to be honest, I was looking for information. I'm 30 years old and decided to change my career. I started learning the Python language from scratch. Often, I hear that it doesn't make sense at this age, etc., but I have a goal and dreams. Thank you very much for this video and the knowledge you convey in a simple and genuinely transparent way. Your way of explaining is really understandable. You're doing a great job.
@alejandro_ao
@alejandro_ao Жыл бұрын
dude, that is great! i'm glad you got into software development, it's a very rewarding and dynamic industry. 30yo is absolutely alright to get into it! keep it up and enjoy the learning process!
@mikhasev
@mikhasev Жыл бұрын
=) I am 38, studying webdev. python seems way easer after all that pain with javascript... like the both.
@andreyseas
@andreyseas Жыл бұрын
You are a really good teacher. Love how you explain things step by step without overwhelming. Keep it up!
@alejandro_ao
@alejandro_ao Жыл бұрын
Thanks, it means a lot!
@monarch9586
@monarch9586 Жыл бұрын
​@@alejandro_ao Hi can you help me resolve this error --> No module named 'altair.vegalite.v4', I am not able to start streamlit also can you make a video on environment setup. Please i really need to submit the project within one week
@Anonymous-lw1zy
@Anonymous-lw1zy Жыл бұрын
Fabulous job! Great use of the diagram to provide the high level view. I like that you kept the code simple and focused on the main objective, and covered each part step-by-step. I also like that you used FAISS, since it is free.
@alejandro_ao
@alejandro_ao 7 ай бұрын
I'm glad you appreciated it! The new release of LangChain is out now btw!
@jamesallison9725
@jamesallison9725 Жыл бұрын
After updating python to the latest version and updating my PyCharm installation, this tutorial ran perfectly. Alejandro is an excellent presenter. Thanks for this terrific tutorial!
@user-oi3cs9qy6s
@user-oi3cs9qy6s Жыл бұрын
Incredible job. Thank you very much for this project. I have no more than 2 weeks learning python and with your help, I was able to complete this project in my free time. Keep the amazing work Sir. Much respect from the Caribbean 🌴
@alejandro_ao
@alejandro_ao Жыл бұрын
Langchain is a framework that allows you to build apps with LLMs like ChatGPT or GPT4All🔥 Edit: Be careful with adding super long documents as the embedding also has a cost. Pricing is minimal but it can scale up pretty quickly if you embed long texts. Here are OpenAI's embeddings prices: openai.com/pricing#embedding-models Let me know if you want a detailed course on Langchain 💪
@yaseenkhan-oq4ih
@yaseenkhan-oq4ih Жыл бұрын
regarding your Chat gpt video about maths when how can we copy and paste into word
@sean9901
@sean9901 Жыл бұрын
yes !! i find the documentation on their website hard to use for creating own apps, a nice series on how to use Langchain for more applications would be nice (details on how to use agents, models, tools, ...) so others can do experimental apps. There are other videos on youtube explaining how to in general but not in detail like you did with this one. Kudos
@alejandro_ao
@alejandro_ao Жыл бұрын
@@sean9901 there are definitely more videos about langchain and its features coming very soon 😎
@alejandro_ao
@alejandro_ao Жыл бұрын
@@yaseenkhan-oq4ih i’m actually adding that feature to the extension, so be sure to install it from the chrome web store to get the updates ;)
@jalalabadass
@jalalabadass Жыл бұрын
Is this why you used FAISS instead of OpenAI embeddings? Would OpenAI embeddings given better results though?
@michaelcoleman9044
@michaelcoleman9044 Жыл бұрын
Im learning python and i decided to follow along with you here. Amazing! I have less than a few months of experience and I was able to follow along with you. Well done lad!
@mjvbhaskar1000
@mjvbhaskar1000 Жыл бұрын
Perhaps the best tutorial out there. Maximum value 0 crap. Keep it like this. :) Good job.
@alejandro_ao
@alejandro_ao Жыл бұрын
thanks! i appreciate it!
@xaviera5886
@xaviera5886 Жыл бұрын
Hi from France 👋 It's the best tutorial on how to create our own PDF GPT. Thanks a lot.
@alejandro_ao
@alejandro_ao Жыл бұрын
bonjour ! hi from toulouse :)
@newcooldiscoveries5711
@newcooldiscoveries5711 Жыл бұрын
Never heard about you before Alejandro, but I'm glad you popped up on my KZfaq feed. Got to give it to you---your a natural born teacher. Excellent job and very informative. Liked and subscribed.
@alejandro_ao
@alejandro_ao Жыл бұрын
Thank you, it means a lot! be sure to use this knowledge to build awesome applications 😎
@elad3958
@elad3958 Жыл бұрын
I was just thinking about creating a dashboard to visualize $ spent on requests. You are ahead of the game
@homegr0wn
@homegr0wn Жыл бұрын
Thank you, thank you, thank you! Your video solidified everything for me. I knew the different pieces, but not how they all meshed together. Now I can finally continue with the project I was working on. Great content. Subscribed.
@churruwn
@churruwn Жыл бұрын
This is an incredible tutorial. I'm not very technical and I was able to follow the entire thing! Thanks for creating it.
@alejandro_ao
@alejandro_ao Жыл бұрын
i'm very glad to hear that!
@absenteeatom
@absenteeatom Жыл бұрын
Great, this is what I needed to get me going. The best guide I have seen so far. I've been working on the code and can now load multiple files of pdf, docx, txt and html at the same time. I also increased the text box size to allow for follow-on questions. Next I want to integrate something like Pinecone with Chat 'memory'.
@tommymoua2475
@tommymoua2475 Жыл бұрын
Hi @AbsenteeAtom, Do you mind sharing how you went about loading multiple files of PDF, Docx, txt?
@codyworkwassenberg1310
@codyworkwassenberg1310 Жыл бұрын
If you are getting an error that says "ModuleNotFoundError: No module named 'altair.vegalite.v4'" - you have to downgrade your Altair to version 4.1.0 as version 5 is giving the error. You can do this by running the command "pip install altair==4.1.0"
@somarble
@somarble Жыл бұрын
Thanks for the Intro showing the final result. Priceless
@alejandro_ao
@alejandro_ao Жыл бұрын
i’m glad you liked it!! i’ll be posting more when i come back from vacation.
@abhayrajpoot1304
@abhayrajpoot1304 2 ай бұрын
Looks super duper good Alejandro !!😍
@alejandro_ao
@alejandro_ao 2 ай бұрын
thank you, you look super good!!
@ricochetism
@ricochetism Жыл бұрын
Some may experience issues doing this as there are a few things I believe Alejandro assumed were already done. This is especially true for getting past the first phase which IMO is launching the initial app in you local environment. 1. You may need to add a .toml file with your open ai keys. You have to add a folder in your project folder titled .streamlit with a file inside it titled secrets.toml 2. You may have to add import openai in your apps file 3. if you have issues with firewall (I did) you'll need to add the port Open the Windows Defender Firewall settings: Go to the Control Panel. Search for "Windows Defender Firewall" and open it. its a bit involved so best to ask GPT how to allow access to the specified port by configuring Windows Defender Firewall after these issues it was a breeze for me Any help needed, just ask me Cheers from Ireland
@ChatGPT-ef6sr
@ChatGPT-ef6sr Жыл бұрын
Very good content. Taking the time to explain what every component of the code is amazing. I never felt I understand code like this. I am subscribing.
@rakancon2215
@rakancon2215 11 ай бұрын
Thank you Alejandro for all the efforts and amazing videos you are creating A big thanks from my bottom of my heart ♥
@rayalgar
@rayalgar Жыл бұрын
Alejandro thanks for this. I’m getting a little more familiar with Python from every video. I believe there is a big opportunity for someone like you to help ‘no coders’ like me get the most from LLM’s. It would be helpful to know how multiple documents could be uploaded and what the limits of the LLM are before the responses begin to fail completely or degrade in quality.
@dxpdigital5343
@dxpdigital5343 Жыл бұрын
I always see people who don’t know sht telling somebody how this is a great opportunity for someone to teach them for free. How about to learn it on your own? “Non-coders” you mean people who jump on bandwagons. If Tylenol became cool tomorrow you should also be a doctor. Maybe you should be more grateful and *gasp* humble. Clearly you would never take the time to learn how to make something secure, so you’re basically just wanting to set up some lame thing where you have put literally no time into. People like you literally ruined crypto, altering its commonality from being useful as utility to being some worthless not-even-penny-stocks.
@coolmcdude
@coolmcdude Жыл бұрын
You cant really call yourself a 'no coder' anymore if you follow enough videos like this
@alejandro_ao
@alejandro_ao Жыл бұрын
i'm working on a video about that indeed!
@rayalgar
@rayalgar Жыл бұрын
@@coolmcdude You’re right - interesting, the labels we give ourselves.
@monarch9586
@monarch9586 Жыл бұрын
@@alejandro_ao Hi can you help me resolve this error --> No module named 'altair.vegalite.v4', I am not able to start streamlit also can you make a video on environment setup. Please i really need to submit the project within one week
@alexander_adnan
@alexander_adnan Жыл бұрын
Thank you man, I had this project in mind for a while, never had time for it.
@ovskihouse5270
@ovskihouse5270 7 ай бұрын
I love this content.. thanks for sharing
@alejandro_ao
@alejandro_ao 7 ай бұрын
you're welcome!
@alejandro_ao
@alejandro_ao Жыл бұрын
Hey there! Let me know what you want to see next 👇
@Stopinvadingmyhardware
@Stopinvadingmyhardware Жыл бұрын
Thanks for the video. I was being told I had to convert them to CSV, which made no sense to me.
@sanjayojha1
@sanjayojha1 10 ай бұрын
Awesome and thank you for not using colab or jyupter. Very few people doing actual LLM coding, mostly skims thru colab notebook.
@creeperXjacky
@creeperXjacky Жыл бұрын
Deeply appreciate for your sharing !!
@LucidGR
@LucidGR Жыл бұрын
One of the best tutorials on the subject! Great job!
@alejandro_ao
@alejandro_ao Жыл бұрын
Thanks! I really appreciate it, there are many more coming soon 🔥
@TuanNguyen-su5ty
@TuanNguyen-su5ty Жыл бұрын
This video is amazing, I get the most from it.
@alejandro_ao
@alejandro_ao Жыл бұрын
thanks, you're awesome!
@h4ppyberry
@h4ppyberry Жыл бұрын
Very nice tutorial, thanks! Wish your channel quick growth🤞
@alejandro_ao
@alejandro_ao Жыл бұрын
thank you! it means a lot :)
@vinci_irl
@vinci_irl Жыл бұрын
Streamlit seems lit 🔥Thanks bro ;)
@BadBite
@BadBite Жыл бұрын
The best step by step explanation. Please keep it up! I suscribed expecting to learn much more. Thank you
@alejandro_ao
@alejandro_ao Жыл бұрын
thanks!
@blocksystems202
@blocksystems202 Жыл бұрын
great tutorial. Thanks soo much. Really easy to follow for a non-programmer.
@alejandro_ao
@alejandro_ao Жыл бұрын
let's turn you into a programmer 💪
@GeorgeZoto
@GeorgeZoto Жыл бұрын
Excellent tutorial, thank you for sharing. Let's learn more about Fais and modularizing code 😃
@trojan6897
@trojan6897 Жыл бұрын
Thanks buddy for this awesome content waiting for more videos on langchain and keep explaining everything like you did so that it helps all to understand in detail.
@alejandro_ao
@alejandro_ao Жыл бұрын
thanks! i will :)
@marklumba1928
@marklumba1928 Жыл бұрын
Having watched several GPT for PDF KZfaq tutorials, I must say that yours stands out due to its clear, concise, and comprehensive explanations. Thank you, Alejandro! I have subscribed to your channel and eagerly look forward to your future content. By the way, I'm in the process of developing my own Langchain app by replicating the code and incorporating additional features. Could you please guide me on replacing the Open API Key in your .env.example file?
@darshangoswami431
@darshangoswami431 5 ай бұрын
Very well explained. Thank you!
@alejandro_ao
@alejandro_ao 5 ай бұрын
thank you!
@SanjeevKumar-dr6qj
@SanjeevKumar-dr6qj Жыл бұрын
I have subscribed to you buddy. This is what my employer assign me to do this, You make my job easier. 🤩
@alejandro_ao
@alejandro_ao Жыл бұрын
i’m happy to hear that! welcome to the club 😎
@ronnymonnig139
@ronnymonnig139 9 ай бұрын
Excellent content, and it works smoothly n correct for me. I also tested your other Repo about ask-multiple-pdf's. GREAT, thank you!
@user-ye2wi5mm8n
@user-ye2wi5mm8n Жыл бұрын
I learned new frameworks and technology today. Thanks
@Alain.Robert
@Alain.Robert Жыл бұрын
Thanks for the great tutorial. I'm glad I found you ! $0.02 per request might not be high for an individual, but that's something to consider for any commercial application. At scale, it might go up fast. I guess prices can only go down and OpenAI is currently getting the first mover bonus.
@alejandro_ao
@alejandro_ao Жыл бұрын
indeed this approach might still be quite expensive for a freemium business model. but you can always find ways to monetize this!
@yantaosong
@yantaosong Жыл бұрын
@@alejandro_ao the two same requests pay double or just pay once ?
@muralidhar2060
@muralidhar2060 Жыл бұрын
You have done an excellent job of explaining complex material in a simple manner. I was wondering if you could provide information on loading multiple PDFs or direct me to additional tutorials on the topic?
@alejandro_ao
@alejandro_ao Жыл бұрын
thank you! i am publishing a detailed explantation on how to do that next week!
@btscheung
@btscheung Жыл бұрын
Nice tutorial video, and thanks for the shout out to my work!
@alejandro_ao
@alejandro_ao Жыл бұрын
hello there! thank you for your amazing work! 💪
@luiscoronado3749
@luiscoronado3749 Жыл бұрын
Great job tks from mexico keep going man
@lennoxabc
@lennoxabc Жыл бұрын
Well done excellent tutorial best I’ve seen so far
@alejandro_ao
@alejandro_ao Жыл бұрын
thanks! you're the best
@syedbabarali1
@syedbabarali1 Жыл бұрын
I've watched several videos on knowledge bases, but this one stands out! The way they explain OpenAI is so clear and concise. Highly recommended! @Alejandro how can I make a chatbot which understand my previous chat and give batter answer it my pleasure if you answer me,.
@guoweixing5927
@guoweixing5927 Жыл бұрын
I have seen a video and it is also very clear that you can that program is based on GPT-3.0. I tried to make adjustments on that program but failed. I hope I can get some inspiration from you here. Thanks!
@JordanBaumgardner
@JordanBaumgardner Жыл бұрын
HA! My Bass instructor just assigned your intro song for me to practice ; )
@alejandro_ao
@alejandro_ao Жыл бұрын
rock on dude lml
@sebastiansanchez4866
@sebastiansanchez4866 Жыл бұрын
I really appreciate your videos, great walkthrough. Thanks.
@alejandro_ao
@alejandro_ao Жыл бұрын
thanks!
@user-cs9qn4il6x
@user-cs9qn4il6x 11 ай бұрын
🎯 Key Takeaways for quick navigation: 00:16 📋 The tutorial demonstrates how to build a Python application with a graphical user interface for PDF text analysis. 01:24 🛠️ The environment setup includes using a .env file for secret keys, and it's essential to name the OpenAI API key environment variable correctly as "openai-api-key." 03:16 📦 The necessary dependencies for the project include Langchain, pdf2, python-dotenv, and Streamlit. 06:46 📄 The tutorial utilizes Streamlit to create a user interface for the PDF application, allowing users to upload PDFs. 12:54 🧩 The text from the PDF is divided into manageable chunks to work with language models efficiently. 20:24 📃 The tutorial explains how to convert the text chunks into embeddings for semantic search. 26:19 💬 An input field is added for users to ask questions about the uploaded PDF. 27:27 📚 The video discusses the process of using a knowledge base and similarity search to find chunks of information relevant to a user's question. 31:44 💬 The Langchain framework provides a convenient "load QA chain" for question answering using language models like OpenAI's. It allows you to use various language models. 34:51 💰 To monitor spending on questions answered by the language model, Langchain offers a callback function that tracks the cost per operation, especially useful when working with OpenAI. 38:09 🧾 You can track the cost of generating answers to questions using Langchain's monitoring function, which shows the cost in tokens and currency for each question answered. Made with HARPA AI
@AIVisionaryLab
@AIVisionaryLab Жыл бұрын
Awesome explanation every single code steps
@roguesecurity
@roguesecurity Жыл бұрын
Thanks for this video, it was the most well explained video I have found on KZfaq till now. One question, how is this knowledge base created using FAISS performs against vector databases like Pinecone for semantic searches?
@_mayankr
@_mayankr Жыл бұрын
Thanks! This is what I was looking for!
@sany2k8
@sany2k8 Жыл бұрын
Your contents are great 👍, also I like your teaching style with visual flow of codes. Please make more videos on streamlit, langchain and OpenAI. Thanks in advanced
@alejandro_ao
@alejandro_ao Жыл бұрын
i will!
@monarch9586
@monarch9586 Жыл бұрын
@@alejandro_ao Hi can you help me resolve this error --> No module named 'altair.vegalite.v4', I am not able to start streamlit also can you make a video on environment setup. Please i really need to submit the project within one week
@peralser
@peralser Жыл бұрын
Great Tutorial!!! Thanks a lot for sharing with us!
@kevon217
@kevon217 Жыл бұрын
nice video! appreciate the step-by-step details.
@ilducedimas
@ilducedimas Жыл бұрын
I appreciate your hard work and great video. Thank you.
@mraaroncruz
@mraaroncruz Жыл бұрын
Just a note on cost: The embedding also costs money and for a large enough PDF, you might end up with most of your cost coming from this. Especially if you are loading multiple pdfs and not just chatting with one in one session. I'm sure you can wrap that embedding step in that callback function (I have never tried so I'm not positive).
@MiltonFilhoDev
@MiltonFilhoDev Жыл бұрын
Hey, thanks for the clarification, that was my biggest question. Is there any way to generate the embeddings locally and avoid paying that extra cost?
@horikatanifuji5038
@horikatanifuji5038 Жыл бұрын
@@MiltonFilhoDev Let me know if you find out the answer to this, I want to know as well
@horikatanifuji5038
@horikatanifuji5038 Жыл бұрын
@@MiltonFilhoDev Actually, I think if you have a locally running LLM and ask it if the user question relates to the content at each index of the array, save the positives by asking the LLM to give you a code word when it is in fact relatable and while extracting text from the response if your code word is positive, then it will mark the text at that point in the array as related to the user question. It will probably not be as effective as the fakebook algorithm, but it should work at the very least.
@grabani
@grabani Жыл бұрын
Others who have built similar opensource projects have used online embedding solutions like Pinecone.
@mraaroncruz
@mraaroncruz Жыл бұрын
@@grabani Pinecone stores the embeddings, it doesn't create them. In the video Alejandro is using FAISS, which is an in memory embedding store. The benefits are that it is very fast and free. The downside being that it is not persisted between server restarts. Though you could dump it into a pickle file and reload it on server restarts if you want to persist it.
@ComputerVisionEngineer
@ComputerVisionEngineer Жыл бұрын
Amazing tutorial! Thank you! 😃
@alejandro_ao
@alejandro_ao Жыл бұрын
thank you!
@jdjdjdjdjbdnsnsnsj-bs9pg
@jdjdjdjdjbdnsnsnsj-bs9pg Жыл бұрын
I made it. I feel like data scientist now
@alejandro_ao
@alejandro_ao Жыл бұрын
bravo! you are awesome 🔥
@kennardplays3325
@kennardplays3325 Жыл бұрын
First of all thank you so much for making this tutorial. This is one of the best tutorials I've seen on this topic. So I've edited your code to be able to use Google's flan-t5-xl model using Hugging Face API, but I always encountered "ValueError: Error raised by inference API: Model google/flan-t5-xl time out" time out error. Do you have any idea on how I can fix this? I'm still new in coding too so It'll be great if you can help with this issue. Thanks again!
@levihan9100
@levihan9100 Жыл бұрын
Nice tutorial! I got two questions here. 1. Can I upload 2 or more pdf files? 2. When I got answer from this program, is it possible to show me the source of the answer? Such as page number? Paragraph? Which will be much better for us to locate it or double check.
@aikofpv
@aikofpv Жыл бұрын
just got the same question. Would be awesome if you could add a second tutorial if you're able to achieve this
@alejandro_ao
@alejandro_ao Жыл бұрын
thanks for these questions! indeed it is possible to do this by using some different modules of langchain. i'll include this in next week's video!
@chrisalmighty
@chrisalmighty Жыл бұрын
You will need to deal with the sources at the point of data storage. You need to store this as metadata filters then when you query the vector database, you also return the metadata for each document 📄. You can then include this in context and ask the model to include the source in its answer.
@elad3958
@elad3958 Жыл бұрын
Absolutely brilliant! Subscribed
@alejandro_ao
@alejandro_ao Жыл бұрын
thank you!
@user-is2iw6gu8v
@user-is2iw6gu8v Жыл бұрын
Excellent. Very well done!!
@GEEK6053
@GEEK6053 Жыл бұрын
That's very interesting thanks for share
@TropicalCoder
@TropicalCoder 11 ай бұрын
Pretty wild! So cool - thanks
@yusufyilmaz2038
@yusufyilmaz2038 Жыл бұрын
Using FAISS part was very good. I would like to see the alternatives and different approaches also. You might consider making different advanced level videos also. Thank you.
@alejandro_ao
@alejandro_ao Жыл бұрын
hey there, thanks for your comment. sure thing. as soon as i get back from vacation i’ll be covering more advanced topics! i’ll be posting surveys soon to see which topics you guys prefer. stay tuned :)
@nguyenngochai6245
@nguyenngochai6245 Жыл бұрын
Great work. Like and Subscribed. Thank you again for sharing this project. I am looking forward to seeing more of your videos. Perhaps, others may have already asked these, but I would like to know if: - For PDF files that are non-English languages, would FAISS embedding and the model work as effectively? - In the case of multiple pdf files or a large pdf file, is there a way to reduce the embedding cost? (like using non-open AI models, or other embedding methods) Thank you for your time.
@RandyHawkinsMD
@RandyHawkinsMD Жыл бұрын
Brilliant. Useful. Thank you.
@javieribanez64
@javieribanez64 Жыл бұрын
Amazing explication, thank you so much
@RakeshNair007
@RakeshNair007 Жыл бұрын
Quick question, what PDF data goes out to the servers versus what data is processed within your local machine? By the way, your explanation is the best on this content within KZfaq hands down... Keep up the good work and thanks from the bottom of my heart for producing such content
@muhdariz9264
@muhdariz9264 7 ай бұрын
amazing video, thank you for sharing.
@alejandro_ao
@alejandro_ao 7 ай бұрын
Thank you! More coming soon
@taranthielemann62
@taranthielemann62 Жыл бұрын
Awesome explanation, video, and idea
@Stingray-le1pq
@Stingray-le1pq 4 ай бұрын
Thanks for the video, its been very helpful. However I keep getting the following error 'AttributeError: module 'openai' has no attribute 'error'' especially when i run these scripts: chain = load_qa_chain(llm=llm, chain_type="stuff") response = chain.run(input_documents=docs, question=user_question). Not sure if i'm missing something. Thanks!
@caioreis123-
@caioreis123- Жыл бұрын
Love it! Thanks!!
@bvds2007
@bvds2007 Жыл бұрын
Very good tutorial, thanks.
@miguelalerts4318
@miguelalerts4318 Жыл бұрын
I saw several of you video trainings and I like the details and the easy and clear explanations. I wonder if instead to send the request for the embeddings each time, is is possible to be saved in a local db and in that case only needed if there is a new pdf file uploaded. Hope this makes sense. Definitely I will subscribe to your channel 👏👏👏
@nogool111
@nogool111 Жыл бұрын
Can I use the information in the knowledgebase to write a paragraph or summarize information rather than "question and answer"? And how can i do that? Thank you.
@chrisalmighty
@chrisalmighty Жыл бұрын
Yes you can.
@destinyedet2920
@destinyedet2920 10 ай бұрын
This is really great content thank you 🎉
@sudipshrestha5633
@sudipshrestha5633 Жыл бұрын
wats the IDE u used? it would be helpful if you had spent a minute to explain how you set up your project. Great videp
@alejandro_ao
@alejandro_ao Жыл бұрын
hey there, i use vs code. i might make a video in the future on how to set up a project for building an app with source control and virtual environments!
@jserpapinto
@jserpapinto Жыл бұрын
very good, thanks man! I'd love to see it integrated with pinecone so that we could upload a bunch of pdfs and have it stateful.
@alejandro_ao
@alejandro_ao Жыл бұрын
it's coming soon!
@user-gq6ol1di3t
@user-gq6ol1di3t Жыл бұрын
very useful thank you bro
@abcd-zi4kc
@abcd-zi4kc Жыл бұрын
Superb!
@alejandro_ao
@alejandro_ao Жыл бұрын
you are
@jrfcs18
@jrfcs18 Жыл бұрын
Good tutorial. Very helpful. Thanks
@alejandro_ao
@alejandro_ao Жыл бұрын
thank you!
@programmingwithshobhit6792
@programmingwithshobhit6792 Жыл бұрын
Hey!, keep these videos man!
@thehogchop
@thehogchop Жыл бұрын
Great tutorial, very thorough. I'm getting an error however, I wonder if anyone else has encountered it? "ImportError: cannot import name 'LLM' from partially initialized module 'langchain.llms.base' (most likely due to a circular import)"
@laptopuser5198
@laptopuser5198 Жыл бұрын
I had this error, but i believe it was fixed by 'pip install openai' i did finally get it running.
@gerardorosiles8918
@gerardorosiles8918 Жыл бұрын
Are the embeddings computed locally when the FAISS object is initialized or are the embeddings done using the OpenAI API? (e.g. you upload your chunks and then get back the embeddings)
@yamani3882
@yamani3882 Жыл бұрын
If I am getting charged by using my openai key then I automatically lose interest since I can’t scale this without worrying about cost.😢
@alejandro_ao
@alejandro_ao Жыл бұрын
Don't let that discourage you! Rather think of ways to monetize your app :) In this example, if you charge your users $30 a month, they would need to make ~1500 requests per month to break even. If they do fewer than that, all the rest is profit for you ;)
@1sanak
@1sanak Жыл бұрын
Thanks for the tutorial! This one stands out for me because you have a great teaching style. I was wondering if it's possible to pass the pdf variable a url of a pdf file for it to read instead of drag and dropping and uploading one that way?
@alejandro_ao
@alejandro_ao Жыл бұрын
Thanks! I’m glad you found it useful! I guess you’d need to send a get request to the URL where the pdf is located (that’ll download the pdf to your computer -or server). You can use the requests python library for that
@juandavidrestrepocardenas4543
@juandavidrestrepocardenas4543 Жыл бұрын
Thank you very much!!!!!!!
@HalfIdeas
@HalfIdeas Жыл бұрын
Nice video - FYI - you forgot to include the example .env in the repo.
@alejandro_ao
@alejandro_ao Жыл бұрын
thanks for the heads up! just added it 👍🏼
@fxsignal1830
@fxsignal1830 Жыл бұрын
thank you very much Alejandro
@alejandro_ao
@alejandro_ao Жыл бұрын
no problem!
@Kryptikoo
@Kryptikoo Жыл бұрын
Thank you for sharing and explaining.
@alejandro_ao
@alejandro_ao Жыл бұрын
thank you!
@TonysTravel
@TonysTravel Жыл бұрын
Very good and comprehensive tutorial Alejandro - Do you have an idea how I can use multiple JSON file instead PDFs?
@philgoddard8606
@philgoddard8606 7 ай бұрын
Really well done tutorial Alejandro - thank you! Have to ask - here the LLM is relying completely on the knowledge base for it's response? For example, any pre-trained knowledge it has of the constitution is not drawn from - only the knowledge in the chunk provided - correct? So you're essentially building a custom domain into the knowledge base and using the LLM to interpret your query, identify the answer based on the chunk provided, and respond in natural language...is that right thinking?
@alejandro_ao
@alejandro_ao 7 ай бұрын
hello there! that's almost right. the language model still "knows" about the content of the constitution because it was probably inside the training material. but the key part of this is that you can load any document that the language model was not trained on and it will be able to answer!!
Deploy Your AI Streamlit App for FREE | Step-by-Step (Heroku Alternative)
30:10
Alejandro AO - Software & Ai
Рет қаралды 18 М.
Chat with Multiple PDFs | LangChain App Tutorial in Python (Free LLMs and Embeddings)
1:07:30
Alejandro AO - Software & Ai
Рет қаралды 464 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 4,1 МЛН
А ВЫ УМЕЕТЕ ПЛАВАТЬ?? #shorts
00:21
Паша Осадчий
Рет қаралды 2,1 МЛН
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 22 МЛН
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 54 МЛН
Chat with a CSV | LangChain Agents Tutorial (Beginners)
26:22
Alejandro AO - Software & Ai
Рет қаралды 64 М.
Python: Create a ReAct Agent from Scratch
57:27
Alejandro AO - Software & Ai
Рет қаралды 10 М.
New Prompt Generator Just Ended the Need for Prompt Engineering
10:43
Skill Leap AI
Рет қаралды 123 М.
Create a LOCAL Python AI Chatbot In Minutes Using Ollama
13:17
Tech With Tim
Рет қаралды 45 М.
Python RAG Tutorial (with Local LLMs): AI For Your PDFs
21:33
pixegami
Рет қаралды 209 М.
Python: Automating a Marketing Team with AI Agents | Planning and Implementing CrewAI
1:03:27
Build Anything with AI Agents, Here's How
29:49
David Ondrej
Рет қаралды 271 М.
Tutorial | Chat with any Website using Python and Langchain (LATEST VERSION)
1:21:13
Alejandro AO - Software & Ai
Рет қаралды 63 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 4,1 МЛН