Getting started with (Retrieval Augmented Generation) RAG in Java & Spring AI

preview_player
Показать описание
In this tutorial we will discuss what RAG is and when we might want to reach for this technique. Ill show you how to get start4d with it in Spring AI using a simple example. If you enjoy this be sure to check out my next video where we take it one step further by using a Vector Database.

Spring AI 1.0 Updates

The syntax for some of the features we went through in this video might have changed a little bit with the release of 1.0. Please check out this video I did on the changes in 1.0.0 M1

🔗Resources & Links mentioned in this video:

👋🏻Connect with me:

Рекомендации по теме
Комментарии
Автор

This is so cool - now the EmbeddingClient is making sense! Just for the life of me could not understand why you need so many different embedding clients. I was putting this embedding client in the wrong place in the picture. Time to start building some data consumption stuff and see what is going into the DB.
Can't wait for the next video!

kappaj
Автор

These series of videos on Spring AI are amazing. Thank you for the efforts you have put in.

If possible, please add a video about unit testing these applications and best practices while writing Junits for Spring AI applications.

OneClickLabs
Автор

It's so cool, thank you very much for this series. This is a subject that i'm currently studying and this specific technical content and with Java is being very clear and giving awesome examples

kalilmvp
Автор

Lovely! God bless you!

got this - Based on the documents provided, there are 32 sports included in the Olympic Games Paris 2024.

backtoGodhead
Автор

terrific. really, really appreciate your work Dan. thanks very much

grrlgd
Автор

Thanks a lot, Dan! These series are truly impressive and impactful.

I have a question about RAG. What are the benefits of supplying the questions and answers ourselves? Where does the AI's strength lie in this scenario? For instance, when you asked about counting sports, the response was 'NA' and it provided the list we inputted. We envision being able to ask you about anything within the text I've included.

I might sound a bit eager, but I'm keen to explore its capabilities and potential applications 😁😁

ahmadshlool
Автор

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 doing this project 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

RajeshKumar-puud
Автор

Thank you so much Dan for the RAG video

sohamsarkar
Автор

my favorite mentor dan vega . sir keep uploading new things. plz share chat system

hkkabir
Автор

Thanks, I'm waiting for the video on the pg vector store

Raffaeler
Автор

How can I create a new Implementation of ChatClient? The goal is to use it internally/privately in a company.

cjpangilinan
Автор

Nice one. Appreciate if you create also a tutorial to read on the database using Rest Api

donaldgatan
Автор

So Spring AI is basically Spring version of LangChain4J

USONOFAV
Автор

Dan, I have one doubt. Can we ask follow-up questions related to the previous question I asked? Will it give a relevant answer, or will it consider two questions as completely new?

sohamsarkar
Автор

Hi Dan, Do you have any news about LangChain with spring?

juanfranciscomosquera
Автор

Is there a way of logging the tokens used?

rajapanda
Автор

Hay dan vega could you please use any opensource llm instead of openAi

abdelrhmanghazaly
Автор

I could not able to run this program with open ai free limit.

sbhusi
Автор

I have a question: When I use embed, I use openai by default, the file that I can use would become in vectorstore but using openai to convert a embedding..I want to say that the file to convert in embbeding use Opeani ?

manuonda
Автор

How to add frontend sir please tell me html

karthikeyans