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

Поделиться
HTML-код
  • Опубликовано: 28 апр 2024
  • 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.
    🔗Resources & Links mentioned in this video:
    Spring AI Introduction: • Spring AI Introduction...
    Stuffing the Prompt: • Spring AI - Bring your...
    GitHub Repository: github.com/danvega/spring-int...
    👋🏻Connect with me:
    Website: www.danvega.dev
    Twitter: / therealdanvega
    Github: github.com/danvega
    LinkedIn: / danvega
    Newsletter: www.danvega.dev/newsletter
    SUBSCRIBE TO MY CHANNEL: bit.ly/2re4GH0 ❤️
  • НаукаНаука

Комментарии • 22

  • @backtoGodhead0
    @backtoGodhead0 5 дней назад

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

  • @ahmadshlool5803
    @ahmadshlool5803 8 дней назад

    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 😁😁

  • @OneClickLabs
    @OneClickLabs 24 дня назад

    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.

  • @kappaj01
    @kappaj01 Месяц назад +1

    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!

    • @DanVega
      @DanVega  Месяц назад

      I had the same questions before I actually got my hands dirty. Glad you're enjoying the series Andre! Can't wait to hear about what you build 👏🏻

  • @kalilmvp
    @kalilmvp Месяц назад

    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

  • @sohamsarkar174
    @sohamsarkar174 Месяц назад

    Thank you so much Dan for the RAG video

  • @RajeshKumar-pu3ud
    @RajeshKumar-pu3ud 25 дней назад +3

    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 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @hkkabir2024
    @hkkabir2024 Месяц назад

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

  • @prashlovessamosa
    @prashlovessamosa Месяц назад

    Thanks Mr Dan.

  • @USONOFAV
    @USONOFAV Месяц назад +3

    So Spring AI is basically Spring version of LangChain4J

  • @donaldgatan3666
    @donaldgatan3666 27 дней назад

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

  • @cjpangilinan
    @cjpangilinan Месяц назад +1

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

  • @sohamsarkar174
    @sohamsarkar174 Месяц назад +1

    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?

    • @Anbu_Sampath
      @Anbu_Sampath Месяц назад +2

      ChatHistory abstraction yet land on Spring AI.

  • @rajapanda832
    @rajapanda832 Месяц назад

    Is there a way of logging the tokens used?

  • @abdelrhmanghazaly8720
    @abdelrhmanghazaly8720 Месяц назад

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

  • @sbhusi
    @sbhusi 29 дней назад

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

  • @manuonda
    @manuonda Месяц назад

    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 ?

  • @karthikeyans2800
    @karthikeyans2800 24 дня назад

    How to add frontend sir please tell me html