Understanding Embeddings in RAG and How to use them - Llama-Index

Поділитися
Вставка
  • Опубліковано 10 лют 2025

КОМЕНТАРІ • 61

  • @syedhussainabedi476
    @syedhussainabedi476 Рік тому +6

    An exemplary and crystal-clear exposition of a complex subject that leaves no room for confusion.

  • @s.moneebahnoman
    @s.moneebahnoman Рік тому +4

    Its one thing to be good at what one does but being good at teaching it to someone else is next level. The best playlist for fully understanding the *essence* of what's happening. amazing!

  • @sivi3883
    @sivi3883 Рік тому +5

    Thanks! This is a great video for understand RAG.
    I agree chunking and embedding play a major role. Per my experience so far, most of the times the LLM (GPT4 in my case) is answering the questions well from my data if the quality of chunks are good!
    The challenges I face so far in chunking:
    1) My PDFs contain a lot of contents with complex tabular structures (with merged rows and columns) for product specifications. Chunking break the relationship between rows and columns.
    2) same kind of contents that replicate across different PDFs for different products. Unfortunately the pdfs are not named by products. Therefore the vector search is returning contents from an a wrong product not asked in the user query.
    3) Sometimes with in the same PDF (Containing multiple products), the contents repeat with different specification per product. If I ask for input voltage for a product A, it might return product B since the context is lost while chunking.
    Looking for smarter ways to chunk to retain the contexts across the chunks.

  • @xd-mk3by
    @xd-mk3by Рік тому +7

    This is an absolutely OUTSTANDING video that summed up so many things so well. Thank you for it!

  • @Vermino
    @Vermino Рік тому +4

    Amazing tutorial. I barely understand this stuff, but you walking me through this helps me understand it a bit more. Plus i am able to recreate your process and test things out myself.

  • @dario27
    @dario27 7 місяців тому +2

    Your tutorials are objectively the best.

  • @mayurmoudhgalya3840
    @mayurmoudhgalya3840 Рік тому +1

    Good thing this showed up on my feed. You got you another subscriber.

  • @ramesh_a
    @ramesh_a Рік тому +3

    🎯 Key Takeaways for quick navigation:
    01:23 📚 Embeddings are multi-dimensional feature vectors that represent words or sentences in a semantic space, preserving their meaning.
    04:06 🧩 Embeddings are crucial in retrieval augmented generation systems to find the closest text chunks based on user queries.
    05:44 🚀 The choice of embedding model is vital as it directly impacts the performance of the response generation in document-based chat systems.
    08:45 🔄 OpenAI embeddings can be used for document retrieval but come with a cost, while various open-source embeddings provide alternatives.
    13:31 ⏱️ Local embedding models like BGE and Instructor are faster for computations compared to remote OpenAI embeddings, which involve server calls.
    Made with HARPA AI

  • @uhtexercises
    @uhtexercises Рік тому +2

    Thank you for sharing. I really like your structured approach and explanations. Very well done

  • @MikewasG
    @MikewasG Рік тому +1

    The video is awesome! Can't wait for the next one!

  • @ilianos
    @ilianos Рік тому +1

    Great educational value! I'm really looking forward to the comparison video for different embeddings.

  • @gsayesh
    @gsayesh Рік тому +1

    Superb Lesson... Thank you! ♥

  • @davidtindell950
    @davidtindell950 5 місяців тому +1

    Thank You. A good review !

  • @killerthoughts6150
    @killerthoughts6150 Рік тому +1

    persist and you will go very big, rooting for you

  • @itsmrani
    @itsmrani 3 місяці тому

    best video on youtube in this topic.

  • @chandrakalagowda3129
    @chandrakalagowda3129 Рік тому +1

    Very useful video on the topic

  • @hernandocastroarana6206
    @hernandocastroarana6206 Рік тому +1

    Excellent video. Thank you very much. I will wait for the next one on the subject 🦾

  • @RichardGetzPhotography
    @RichardGetzPhotography Рік тому +1

    Excellent content!!
    Thank you!

  • @mioszdaek1583
    @mioszdaek1583 Рік тому

    Great video. Thanks for sharing.
    Just a little comment about analogies by vector arithmetic. In the 2:44 you said that if you subtract a vector man from vector king you would get a vector woman where in fact the resultant vector would represent royalty I think.
    Thanks

  • @li-yq7rc
    @li-yq7rc Рік тому +3

    Need an index of all topics of prompt engineering to understand where to begin.

  • @DrRizzwan
    @DrRizzwan 7 місяців тому

    Good explanation 👏

  • @patrickblankcassol4354
    @patrickblankcassol4354 Рік тому +1

    Thank you for awesome content

  • @Megh_S
    @Megh_S Рік тому +1

    Please make a video on alternatives for Open AI llms as well..

  • @ayansrivastava731
    @ayansrivastava731 9 місяців тому

    The only problem lies in this question :
    1. when an LLM model is trained ( not by us, by the ones who made it ) - the input embedding matrix is already fixed
    2. What then, is the need of creating external embeddings in the first place? is there a way we can reuse the model's embeddings ? and if not, why? we could very well tokenize our input text, and model would take care of looking up the corresponding embedding.
    I know it wont fit with RAG Logic , but then counter question is - how are you sure performance wont be affected if using custom embeddings ( for storage in vectorDB) vs kind of embeddings that have been generated per token within LLM itself. is using RAG embeddings means we are bypassing LLM embeddings?

  • @timtensor6994
    @timtensor6994 Рік тому

    thanks for the summary. Been trying to follow your videos. Have you tried to run llama index with mistral 7B model and instructor embedding ? Is there already a colab notebook and video?

  • @livb4139
    @livb4139 Рік тому +1

    Thanks, embedding was like black magic to me

  • @paultoensing3126
    @paultoensing3126 9 місяців тому

    When you click on the next sequence of code lines, how is it that that stuff magically materializes? Do you copy and paste it from someplace else as obviously you don’t take the time to write it all out like a mortal. Where do these lines of code come from?

  • @42svb58
    @42svb58 Рік тому

    awesome video!

    • @joxxen
      @joxxen Рік тому

      as always, you will never find a bad quality content by this guy

  • @andrewandreas5795
    @andrewandreas5795 Рік тому

    Awesome video! one question, does this give better result than your standard Pinecone/Chorma approach?

    • @engineerprompt
      @engineerprompt  Рік тому

      Pinecone/Chroma are vector store for storing the embeddings. What type of semantic search you use will have an impact.

  • @vinven7
    @vinven7 Рік тому

    The section on Emebeddings with all the cool visualizations, where is that from? If it's from somewhere else, could you please share the link?

  • @Drone256
    @Drone256 Рік тому

    You started off creating an embedding for a sentence but it appears each chunk is more than a sentence. Would love to know more how you decide how to chunk the data.

  • @KokahZ777
    @KokahZ777 10 місяців тому +1

    You didn’t explain how to compare query embeddings with dataset embeddings

  • @adityasharma2667
    @adityasharma2667 7 місяців тому

    how do you find that chunksize =800 and overlap 20 is a good number?

    • @engineerprompt
      @engineerprompt  7 місяців тому

      chunk size and overlap is really doc dependent. I think openai uses similar parameters in their assistants by default.

  • @haroonmansi
    @haroonmansi Рік тому

    Thanks! any idea how "chunking" or embeddings will be different if we are dealing with python code instead of English language? Like for example I want to use RAG method with Code Llama or CodeWizard for my github repo containing Python code.

    • @engineerprompt
      @engineerprompt  Рік тому

      Check this out: ua-cam.com/video/aD-u0gl93wM/v-deo.html

  • @metaljacket8102
    @metaljacket8102 7 місяців тому

    Your video is better than those made by llamaindex!

  • @arkodeepchatterjee
    @arkodeepchatterjee Рік тому

    please make the video comparing different embedding models

  • @wuzhao8605
    @wuzhao8605 Рік тому

    Is Llama index better than langchain? If so, what are the contributors of the improved performance?

  • @uwegenosdude
    @uwegenosdude 9 місяців тому

    Great video. Thanks a lot ! Could you perhaps recommend a good free embeddings model for German language documents?

    • @engineerprompt
      @engineerprompt  9 місяців тому

      The models from mistral.ai/ supports German, they even have their own embeddings which I think supports German.

  • @zedcodinacademibychinvia9481

    How can i perform the same task with Gemini

  • @paultoensing3126
    @paultoensing3126 9 місяців тому

    How do you pick your embedding models? Most of us have no context for understanding what’s valuable in a model or what the criteria would be. So you slide over that as if we should know how to pick an embedding model.

  • @GaneshKumar-jw9ml
    @GaneshKumar-jw9ml Рік тому

    Can you make a video on chat element in streamlit which uses prompt template.

  • @yth2011
    @yth2011 Рік тому

    what is the difference between embedings and lora

  • @paultoensing3126
    @paultoensing3126 9 місяців тому

    I recommend that you just put code in your thumbnail and see how that sells. That’ll make it super uncool.