Тёмный
Joy Maitra
Joy Maitra
Joy Maitra
Подписаться
OpenAI RAG Chatbot | Chat with PDF locally
14:01
7 месяцев назад
Комментарии
@sharankumar31
@sharankumar31 6 дней назад
does it handle large amount of data?? like more that 3L data
@joymaitra5414
@joymaitra5414 6 дней назад
Thanks for commenting, in this approach we are not using LLM to deal with data, we are generating the query only.
@ITVISHNURAMMK
@ITVISHNURAMMK 21 день назад
Super Great Explanation, and easy to Understandable Thank you lot !
@joymaitra5414
@joymaitra5414 21 день назад
Thank you !!
@mehmetbozdemir
@mehmetbozdemir Месяц назад
Hello sir, can you share the codes?
@joymaitra5414
@joymaitra5414 Месяц назад
The code is there in the GitHub, link is provided in the description of the video
@joymaitra5414
@joymaitra5414 Месяц назад
Code is there in the GitHub link provided in the description of the vodeo
@sabareeswaranbagavathi1230
@sabareeswaranbagavathi1230 Месяц назад
Please provide pre-requisite installation otherwise as a beginner no one can recreate.
@joymaitra5414
@joymaitra5414 Месяц назад
Thanks for commenting, as for pre requisite, to have python is required and VS code or Jupyter notebook is required for coding.
@yazanrisheh5127
@yazanrisheh5127 2 месяца назад
I've tried your code and I uploaded my own csv file however its only showing the dataframe whenever I ask any question. It doesnt compute or anything.
@joymaitra5414
@joymaitra5414 2 месяца назад
Hi thanks for reaching out, however the application will show the dataframe only but the changes are supposed to be in the dataframe, like if the date format is changed, also you can check the CSV generated in the backend.
@user-wr4yl7tx3w
@user-wr4yl7tx3w 2 месяца назад
There is some background noise
@joymaitra5414
@joymaitra5414 2 месяца назад
Thanks I will try to take care of it in the following videos. Let me know if you are not able to understand any part.
@albrechtfeilcke2000
@albrechtfeilcke2000 3 месяца назад
Hey, great video, thanks to you I got it working. Is there a possibility to change the code, so that not the first modelfile is downloaded? I want to download Q4 Mistral for examble but the code gives Q2. I am pretty new to this, sorry if this is a silly question.
@joymaitra5414
@joymaitra5414 3 месяца назад
Thank you for reaching out !! Good question it is. In another video I have shared different ways to load the models, with Llama_cpp you can manually download the model of your choice and load that for inference.
@asd-iy2vk
@asd-iy2vk 3 месяца назад
can you attach notebook?
@joymaitra5414
@joymaitra5414 3 месяца назад
It's available in GitHub link mentioned in the description
@AliSidi865
@AliSidi865 3 месяца назад
Thank you sir , have you used open source LLMS such as Claude 3 , Llama 3 or Mistral ? what do you think of a fine tuned model ? some companies don't like closed source models (security ...)
@joymaitra5414
@joymaitra5414 3 месяца назад
Thank you for commenting ! I have tried to do it with Llama 2 and Mistral , well with 7B models, the response was not so good. However, I think with the higher parameter model, it must be possible.
@AliSidi865
@AliSidi865 3 месяца назад
@@joymaitra5414 Thanks for the response 🙂
@yashakirad2996
@yashakirad2996 3 месяца назад
Hi, I am getting error ModuleNotFoundError: No module named 'langchain.chat_models' please help
@joymaitra5414
@joymaitra5414 3 месяца назад
Try uploading langchain by pip install --upgrade langchain
@rajkumar8it
@rajkumar8it 3 месяца назад
Thanks Joy. Once the vector DB is loaded with schema and if we have some sample questions and corresponding SQLs how can we add it to the vector DB for better results ? Also does the vector DB keeps updating itself with more interaction or how can we improve by manually adding more questions and SQLs?
@joymaitra5414
@joymaitra5414 3 месяца назад
Thanks for reaching out ! You can update the metadata of the records in vectordb. I have another video on Vector DB, that might be of help. Vector DBs don't have any intelligence to update itself. But we can build logics around it to handle it
@C__MehrabEvan
@C__MehrabEvan 3 месяца назад
does it work with image based pdf? and if doesn't how can i make one? please suggest
@joymaitra5414
@joymaitra5414 3 месяца назад
Thanks for reaching out!! It does not work for image based pdf, for that chatGPT vision is required. And have to pass the pages of the pdf as image in the prompt. I am making a video on that will share soon. Request you to stay connected!!
@paulham.2447
@paulham.2447 3 месяца назад
Thanks. This will help me !
@joymaitra5414
@joymaitra5414 3 месяца назад
Glad to hear that!
@wah866sky7
@wah866sky7 3 месяца назад
Thank you, Joy. I am a new learner on RAG. Would you mind show us a demo on using module with OpenAI (not AzureChatOpenAI) and use MySQL (with full database tables provided)? I hope can follow with you to build up the chatbot step by step successfully. Thanks!
@joymaitra5414
@joymaitra5414 3 месяца назад
I think the same steps will work, only instead of the sqlite make the connection to MySQL (pythonic way) and change the API key for OpenAI.
@NehaKothari-iz3hy
@NehaKothari-iz3hy 3 месяца назад
Hey Joy, Can you plz help how can we use input as book cover image and find similar book search with the same code , also provide the code for the same , dataset??
@joymaitra5414
@joymaitra5414 3 месяца назад
Hi Neha, thanks for commenting, but this approach will definitely not work for your requirement, this implementation is for textual inputs, you would need a multi modal LLM to interpret the image input. I will try to cover that in one of my future videos.
@NehaKothari-iz3hy
@NehaKothari-iz3hy 3 месяца назад
Can you plz provide the pdf of document that you used
@NehaKothari-iz3hy
@NehaKothari-iz3hy 3 месяца назад
Not able to get that point, from where i can get the pdf for book recommendation chat bot
@joymaitra5414
@joymaitra5414 3 месяца назад
You can use any pdf document, with text in it, I have used a blog post, saved as pdf.
@wibuyangbaca2113
@wibuyangbaca2113 4 месяца назад
Thank you so much, this explanation is great! This really help me a lot but, i'm stuck at adding my own gguf models to my project. Like when i'm trying to add it my code didn't detect it and downloaded the other version of the model id. Can i download the models manually from Hugging Face than downloading it from the script? Because the file i downloaded from the script, is not even a gguf file or any type of that.
@joymaitra5414
@joymaitra5414 4 месяца назад
Yes, that is absolutely possible, you can manually download and provide to the local file path in LlamaCpp, for CTransformers also the same is possible
@wibuyangbaca2113
@wibuyangbaca2113 4 месяца назад
​@@joymaitra5414 Thank you again for helping and assisting me!
@TechU-Turn
@TechU-Turn 4 месяца назад
Darun session
@joymaitra5414
@joymaitra5414 4 месяца назад
Thank you !!
@ganesh_kumar
@ganesh_kumar 4 месяца назад
Thanks for the video, does this work for multiple documents as well with good accuracy?
@joymaitra5414
@joymaitra5414 4 месяца назад
Yes it works with multiple documents, accuracy is quite good
@georges4195
@georges4195 5 месяцев назад
*Promosm* 😓
@deepak_kori
@deepak_kori 5 месяцев назад
Can we make this as conversational?
@joymaitra5414
@joymaitra5414 5 месяцев назад
We can, I have made another video on how to create chatbots with memory.
@deepak_kori
@deepak_kori 5 месяцев назад
THIS IS amazing...
@joymaitra5414
@joymaitra5414 5 месяцев назад
Thank you!!
@AbhijitRayVideos
@AbhijitRayVideos 5 месяцев назад
I see you have some good use cases. I've been working on similar projects. How about we have a little chat and exchange notes?
@joymaitra5414
@joymaitra5414 5 месяцев назад
Sure, you can reach out on email or LinkedIn
@seththunder2077
@seththunder2077 5 месяцев назад
This was a very very veryyyyy interesting video. Please continue this
@joymaitra5414
@joymaitra5414 5 месяцев назад
Thank you !!
@azmathahmed268
@azmathahmed268 5 месяцев назад
Hello I am having few queries how can I reach you out please help me
@joymaitra5414
@joymaitra5414 5 месяцев назад
You can email me
@code-Dude
@code-Dude 5 месяцев назад
how to make api of model
@joymaitra5414
@joymaitra5414 5 месяцев назад
I have shared, how to create API of models in my video, you may find it helpful : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--TtE7otMHCc.html
@user-fj4ic9sq8e
@user-fj4ic9sq8e 5 месяцев назад
Hello, thank you so much for this video. i have a question related of summarize questions in LLM documents. For example in vector database with thousands documents with date property, and i want ask the model how much document i received in the last week?
@joymaitra5414
@joymaitra5414 5 месяцев назад
I guess we don't need LLM for such a query, we can query the vector DB, and for how to do that ? You can watch my video on Vector DB.
@user-fj4ic9sq8e
@user-fj4ic9sq8e 5 месяцев назад
@@joymaitra5414 , thank you for the beedback, but the questions are illimited, the user can ask direct questions like "what is the latest document i have?" or he can ask "how many documents i didn't read ?", i don't know how can convert this question to vectorDB query.
@joymaitra5414
@joymaitra5414 4 месяца назад
may be you can add the file properties as metadata attributes in the vectorDB and then make use of that information to answer the query.
@implexedone
@implexedone 5 месяцев назад
Hey, please add your contact email to RU-vid. I have a project you will be interested in.
@allantauro3606
@allantauro3606 5 месяцев назад
Hey good video. I am trying to recreate this, created the .env all of that is situated, however when I run ui.py using streamlit, getting error AttributeError: module 'openai' has no attribute 'error'. Can you help??
@joymaitra5414
@joymaitra5414 5 месяцев назад
Thanks for reaching out. If you are not using azure OpenAI, there can be some errors due to libraries.
@azmathahmed268
@azmathahmed268 5 месяцев назад
@allantauro3606 hey bro have you recreated it?
@wah866sky7
@wah866sky7 3 месяца назад
@@joymaitra5414 Thanks, Joy. But if I just have API key from normal OpenAI, how can I adjust the program to fix the module problem?
@VP_SOTWMC
@VP_SOTWMC 6 месяцев назад
I have two queries. It would be helpful if you can assist in that. 1. Template which you are using for prompt , in the first line you have provided f string. But however in the next lines you are not giving where you have {context}, {question}. So wouldn't that make it a string rather taking context and questions as variable? Or the model will understand that? 2. My second question is that I have tested the code. It is working for most part except Chat history. Even in the same session, it is not able to remember the previous questions. It is getting updated in the chat history though. But when u explicitly ask what is my previous question or ask like explain more on previous question, it is not taking the chat history rather giving halucinated questions or says it doesnt know previous question. Kindly clarify on the above two questions
@joymaitra5414
@joymaitra5414 6 месяцев назад
Hi, Thanks for sharing the queries, for the 1st query, you are right, need to fix that. But for the 2nd question, this demo I have shown only the chatbot, while in the other view I have demonstrated how to utilize the memory in llm. Let me know, if you have further queries. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--TtE7otMHCc.html
@sonalmalhotra278
@sonalmalhotra278 6 месяцев назад
Thank you sir for this informative video
@joymaitra5414
@joymaitra5414 6 месяцев назад
Happy to help
@yuvrajbro8882
@yuvrajbro8882 6 месяцев назад
Sir, thanks for the video, I just want to ask from where I could learn all these libraries and their use.
@joymaitra5414
@joymaitra5414 6 месяцев назад
Well I find the content spread all across the internet, trying to bring them together in one place. You can share your particular queries in my channel community, I will try to share my thoughts there.
@Alkotas25
@Alkotas25 6 месяцев назад
thx the video! sorry my question but im a beginner in this code. What files I see github I tried to run on Codespace with no success. Is there any other file, enviroment info I should have to try and run your RAG app? Could you pls help me regarding this as a beginner?
@joymaitra5414
@joymaitra5414 6 месяцев назад
You need to add the openAI api key as environment variable.
@rakeshkumarrout2629
@rakeshkumarrout2629 6 месяцев назад
hey this is really useful.can you explain how to extract text from pdfs for indic langugaes.these like to extract hindi languages we are not able to extract with regular pypdf or ocr techniques.kindly help with some codes.
@joymaitra5414
@joymaitra5414 6 месяцев назад
Thanks for your comment!! I would definitely try to cover that in my next video !!
@jodymarentez9847
@jodymarentez9847 6 месяцев назад
'promosm'
@sonalmalhotra278
@sonalmalhotra278 6 месяцев назад
Sir can you please upload the same video for open source LLM Model- MPT 7B
@joymaitra5414
@joymaitra5414 6 месяцев назад
Sure I will try to cover in my nxt video
@joymaitra5414
@joymaitra5414 6 месяцев назад
I have added a video which contains how to run MPT-7B locally, let me know if that helps.
@yuvrajbro8882
@yuvrajbro8882 6 месяцев назад
Please, Upload the same video for LLM Model - MPT 7B.
@joymaitra5414
@joymaitra5414 6 месяцев назад
Sure, I will cover it in my nxt video.
@joymaitra5414
@joymaitra5414 6 месяцев назад
I have added a video which contains how to run MPT-7B locally, let me know if that helps.
@minimal2224
@minimal2224 7 месяцев назад
Sir, what type of computer do you recommend for running local GPT’s? I have PrivateGPT, but it’s painfully slow on replies.
@joymaitra5414
@joymaitra5414 7 месяцев назад
On local system with 16GB RAM and i5 processor I find the response slow bt ok, anything less than that, I hear you, it's pathetic !
@akilsghodi9057
@akilsghodi9057 7 месяцев назад
Great job bro I was assigned this task and I was struggling a lot but your tutorial helped me a lot
@joymaitra5414
@joymaitra5414 7 месяцев назад
Happy to hear, that it was helpful...
@nasiksami2351
@nasiksami2351 7 месяцев назад
Great one! Can you make a tutorial on, how can we finetune our custom dataset locally and use that finetuned model for getting domain-specific results locally?
@joymaitra5414
@joymaitra5414 7 месяцев назад
I will certainly try that....
@somnath2775
@somnath2775 7 месяцев назад
Guru Bhalo Likhechish, I hope you know who I am. Don't disclose 😜. Ami Finally toke subscribe korlam. Keep going.
@joymaitra5414
@joymaitra5414 7 месяцев назад
Thank you !!
@nachiketshinde-wm1ui
@nachiketshinde-wm1ui 7 месяцев назад
github link is not working
@joymaitra5414
@joymaitra5414 7 месяцев назад
Fixed it now, Thanks for letting me know !
@nachiketshinde-wm1ui
@nachiketshinde-wm1ui 7 месяцев назад
thanks@@joymaitra5414
@Techbro-ho3pp
@Techbro-ho3pp 7 месяцев назад
Why not share google colab link itself, as Github link is giving 404
@joymaitra5414
@joymaitra5414 7 месяцев назад
Fixed it now !!
@swatilekhachatterjee9180
@swatilekhachatterjee9180 8 месяцев назад
Wonderful!!!
@joymaitra5414
@joymaitra5414 8 месяцев назад
Thank you !!
@IdPreferNot1
@IdPreferNot1 8 месяцев назад
Can you please redo the Github link?
@joymaitra5414
@joymaitra5414 8 месяцев назад
I have put it in the video description, is it not working?
@marcoradossi7034
@marcoradossi7034 8 месяцев назад
@@joymaitra5414 not working
@latlov
@latlov 7 месяцев назад
@@joymaitra5414 returns 404. the link is broken
@Techbro-ho3pp
@Techbro-ho3pp 7 месяцев назад
The GitHub link is giving 404 not found. @@joymaitra5414
@joymaitra5414
@joymaitra5414 7 месяцев назад
fixed now !!
@pdahalkar
@pdahalkar 8 месяцев назад
This is awesome! 👍
@joymaitra5414
@joymaitra5414 8 месяцев назад
Thank you Prashant !!
@DinoLopez
@DinoLopez 8 месяцев назад
great video Joy, do u think will be possible to have the model downloaded into a file and have a docker container that runs the webapp and interact using the model?
@joymaitra5414
@joymaitra5414 8 месяцев назад
Absolutely ! We can download the model and pkg the whole thing inside docker and ship as an app. I will try to cover that in my future video.
@DinoLopez
@DinoLopez 8 месяцев назад
@joymaitra5414 Even with some API, could be accessible from Linux CLI and thst also be the endpoint to a web Interface as well. get the best of both worlds CLI and WWW. will be happy to work with u in this.
@joymaitra5414
@joymaitra5414 8 месяцев назад
My next video is to create an api endpoint for the llm response. Hope it will be helpful
@alinemati3750
@alinemati3750 8 месяцев назад
great video, possible to share the link of jupyter notebook?
@joymaitra5414
@joymaitra5414 8 месяцев назад
Sure, here is the github link for the same. github.com/JYTDEMO/collab4llm
@latlov
@latlov 7 месяцев назад
@@joymaitra5414 404
@joymaitra5414
@joymaitra5414 7 месяцев назад
fixed now !!
@vbridgesruiz-phd
@vbridgesruiz-phd 9 месяцев назад
Hi Joy, thank you for this video. What is the advantage of using ctransformers library versus other github libraries available such as OpenLLM? Is it just a matter of personal preference?
@joymaitra5414
@joymaitra5414 9 месяцев назад
Hi, thanks for your quey, more than preference i would say understanding the core, openLLM is like a wrapper created using the basics that tried to capture.
@vbridgesruiz-phd
@vbridgesruiz-phd 9 месяцев назад
@@joymaitra5414 I prefer simple as well. I will try with just ctransformers to see if that improves implementation. Right now, too many wrappers out there haha.
@pdahalkar
@pdahalkar 2 года назад
Excellent Joy!! So proud to see this and I am sure you have already improved on top of this!
@joymaitra5414
@joymaitra5414 2 года назад
Thank you so much! yes I have done many more modifications on it, planning to share soon. !!