Spring AI RAG | Chat with your PDF Documents using Java and Spring Boot

preview_player
Показать описание
Hi and welcome back to my channel! Todays video goes through an example of Retrieval Augmented Generation using Large Language Models (OpenAI in this case)- or how to chat with your PDF documents - using Java 21, Spring Boot, and Spring AI module. As always, the code I will show here is available in Github, link below this. I will cover how to use Vector databases and prompt engineering to limit your queries to the provided information.

So essentially we'll do RAG with LLMs using Java, and that's it. :)

If you like the content here, remember to click the like button, and subscribe to my channel for more. And as always, drop any comments, questions, requests in the comment section.

Here are the links in video:
Рекомендации по теме
Комментарии
Автор

Gratitude for your time and energy! Thank you for sharing such informative content!

arnaudpoutieu
Автор

good ones, we want more usecases for AI and springboot

liqwis
Автор

Greate video with lots and lots of great information.

kappaj
Автор

very good video, thanks for the into, great more examples about rag.

nicolasfelipe
Автор

Create a Basic RAG model AI chatbot using any open-source model available.
Database: Zilliz/Supabase or any Vector DB, of your choice.
Backend: Java
Frontend: HTML/CSS/JS (or anything you are familiar with)
Backend should haveAPI for:
• Upload a file or text - text should then be converted into chunks and then embeddings
(You can use any open-source embedding model or paid one too). Embedding should
then be stored in a vector DB with vector index of your choice (Cosine/ L2/KNN).
• Chat API -> prompt or user queries should be passed in this API and using prompt
engineering response should be derived from any Language model.
Frontend:
UI does not have to look pretty. basic pages should be there -
1. For uploading docs or text for training the RAG model.
2. Basic chat interface where user can send message and receive the response.
Sir please help me how to do this project🙏🙏🙏🙏🙏🙏

ManuRaj-ib
Автор

Good video but, editor color does not match for broadcast and dragging mouse in code editor is not good

MuayViaura
Автор

Nice video! Can you do it with front end like nextJs ? it will be really appreciated and helpful!

MohamedIhebBenSlama-et
Автор

Hi! Thanks for sharing ! Very useful! Is it correct to use this idea to read .pdf invoices? I have a situation that I need to read .pdf invoices and extract the information into JSON format. What is most correct approach? Extracting text from the .pdf and send this text to the LLM or use this RAG idea? Thanks.

MsProtestante
Автор

Hi I tried this RAG with pdf document, some of pdf is not parsed by PagePdfDocumentReader

blazy
Автор

I don't mean to mock you, but when you say "model", it sounds like "module" in my ears. 😅
nice video bro, keep create content like this...

ArcWeltraumpert
Автор

one doubt i have ollama which will have a ai model lets say mistral or meta now i am connecting this to my springboot app and lets say i have a pdf about my product can show me how a rag implementation done here and when a api is sent it should give me the data about the PDF

liqwis
join shbcf.ru