L-8 Build a Q&A App with RAG using Gemini Pro and Langchain

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • Welcome to our step-by-step tutorial on building a Q&A app using Retrieval-Augmented Generation (RAG) with Gemini Pro and LangChain!
    GitHub: github.com/Aar...
    For any inquiries or further assistance, feel free to contact me at: aarohisingla1987@gmail.com
    In this video, we will guide you through the process of creating a powerful and intelligent Q&A application from scratch. With the combination of Gemini Pro's cutting-edge AI capabilities and LangChain's versatile framework, you'll learn how to integrate advanced retrieval techniques to enhance your chatbot's performance.
    What you'll learn:
    The basics of Retrieval-Augmented Generation (RAG)
    Setting up the Gemini Pro environment
    Integrating LangChain with your application
    Building and deploying a Q&A app
    Don't forget to like, comment, and subscribe for more tutorials and updates!

КОМЕНТАРІ • 25

  • @arnavthakur5409
    @arnavthakur5409 3 дні тому

    Very nicely explained ma'am

  • @itsmeuttu
    @itsmeuttu Місяць тому

    Best tutor for AI and ML , Thanks alot mame

  • @user-gi9sn2mx7i
    @user-gi9sn2mx7i Місяць тому +1

    Wao Amazing thanks mam
    from Pakistan

  • @howGnt
    @howGnt Місяць тому

    looking forward to hearing seminar about Lora-pro from U

  • @AkulSamartha
    @AkulSamartha Місяць тому

    Super awesome video Asrohi. Can you make one RAG app to chat with any multiple websites please.

    • @CodeWithAarohi
      @CodeWithAarohi  Місяць тому +1

      You can provide the link of multiple websites in the urls list.

    • @AkulSamartha
      @AkulSamartha Місяць тому

      @@CodeWithAarohi Sorry. My question was, can we add chat history into this.

  • @NehaKothari-iz3hy
    @NehaKothari-iz3hy Місяць тому +1

    Plz explain fine tuining the hugging face model on custom data specially text to image generation

  • @noorahmadharal
    @noorahmadharal 20 днів тому

    Thank you for this amazing series of vedios. I have a question that we ca using Chroma DB for saving the embeddings so how can we see these embeddings in chroma db and aslo we have not use any chroma db connection link.

    • @CodeWithAarohi
      @CodeWithAarohi  20 днів тому +1

      We have created a Chroma instance with Chroma.from_documents, which stores embeddings in a Chroma vector database.
      In our code, we haven’t specified a persist_directory, so the embeddings are stored in memory only.
      To persist the embeddings and be able to reconnect later. You can use this code:
      vectorstore = Chroma.from_documents(
      documents=docs,
      embedding=GoogleGenerativeAIEmbeddings(model="models/embedding-001"),
      persist_directory="path_to_persist_directory"
      )
      # Save the embeddings to disk
      vectorstore.persist()
      To inspect the embeddings stored in Chroma DB, you can use the get_all_embeddings() method
      query_vector = GoogleGenerativeAIEmbeddings(model="models/embedding-001").embed("your query text")
      results = vectorstore.similarity_search(query_vector, k=5)
      for result in results:
      print(result)

  • @user-gi9sn2mx7i
    @user-gi9sn2mx7i Місяць тому

    I have followed your video, but the chatbot is still giving answers outside the provided context, even after using your system prompt and making adjustments. For example, if I say "I'm sad, write a joke for me," it still writes a joke. This is the issue I'm encountering. Could you please provide a solution?

  • @FahadRamzan-ri4cr
    @FahadRamzan-ri4cr Місяць тому

    I get this error while I run last cell of that basic rag
    ---------------------------------------------------------------------------
    AttributeError Traceback (most recent call last)
    Cell In[13], line 1
    ----> 1 response = rag_chain.invoke({"input": "what is new in YOLOv9?"})
    2 print(response["answer"])
    AttributeError: 'int' object has no attribute 'name'

  • @hendoitechnologies
    @hendoitechnologies Місяць тому

    full course video about "Claude 3.5 sonnet AI model, API finetune" full course please

  • @sanjaybhan1585
    @sanjaybhan1585 Місяць тому

    How to interact with multiple pdfs, and how much load of data will be handled by llm as a free tier

  • @omkarsatapathy8209
    @omkarsatapathy8209 Місяць тому

    Hello madam, Omkar, this side. I’m very glad to see your video regarding that RAG model. But for somehow, I realise that it is not hundred percent running locally, we need to use Google API token key. I have use the same with the open AI after few recurrent and after few token processing, it is asking some billing method or credit card details to further.
    Can we have such a model where we can deploy rag pipeline from scratch hundred percent locally? we can fetch an LLM model from hugging face and download it and storage in our local drive. Create a victor data on our own or just a pie tenor, which am all the text token. That will be much more beneficial for me if we are going for a a business purpose. It is much more beneficial to run it locally with a discreet GPU.
    Can you please help me guiding on the same building a rag model from scratch using a LLM from hugging face? It can be any LLM of my choice. I’ll be hopeful to see that tutorial and develop myself.. thank you so much for your content. Your content are very beautiful, and it’s very informative.. just teach like a teacher in a classroom, thank you so much again…..❤❤

  • @sunnycloud29
    @sunnycloud29 Місяць тому

    how to create the same on a CSV dataframe?

    • @CodeWithAarohi
      @CodeWithAarohi  26 днів тому

      Just load the data from csv file. Eg:
      from langchain_community.document_loaders.csv_loader import CSVLoader
      file_path = ("test.csv")
      loader = CSVLoader(file_path=file_path)
      data = loader.load()
      for record in data[:2]:
      print(record)

  • @AbhishekSingh-od8sy
    @AbhishekSingh-od8sy 14 днів тому

    is it paid maam ??