5-Langchain Series-Advanced RAG Q&A Chatbot With Chain And Retrievers Using Langchain

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

КОМЕНТАРІ • 72

  • @venkatkrishnan9442
    @venkatkrishnan9442 9 місяців тому +4

    your videos are too good Krish. If some points are not understood and when I again check back I can get and relate what you are explaining. Thanks for all these very useful videos

  • @im_shubham27
    @im_shubham27 9 місяців тому +21

    Suggestion : It would be really helpful for viewers and Data Science communities : if next you can make a video on chatbot(maybe chainlit ui) to chat with pdf using langchain any llm(openai/ollama) as a next step, only thing is chatbot should remember chat history(maybe use langchain memories component) so if my first question is : Who is Sachin Tendulkar? and the next follow up question is What is his place of birth? so chatbot should automatically infer that his -> means Sachin Tendulkar. Thanks in Advance.

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

      i already thought this 💯

    • @amritsubramanian8384
      @amritsubramanian8384 8 місяців тому

      hey sks, for that you have this concept called as memory buffer in langchain. You can look to it in LangChain Docs ;)

  • @NoDoglapan
    @NoDoglapan 9 місяців тому +7

    Your new look reminds me of 70's bollywood villain called 'Shetty' (Rohit Shetty's father) LOL 🤣😛😁 . But in real life you are a hero !!! 🙏

  • @shrideeptamboli
    @shrideeptamboli 9 місяців тому +3

    followed all the 5 videos in less than 24 hrs. Now gotta looks at the documentation for retrieving from multiple documents.

  • @vos72
    @vos72 8 місяців тому +1

    Great hair cut! It suits you! Absolutely love your videos -- they have been very helpful so far! You're an outstanding teacher!

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

    If I could I would have liked this series 1000s time, you are awsome person man, I wish you all the very best for the kind work you are doing, Just love you man, big fan

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

    You are a gem @krishnaik Sir, i read langchain from multiple platforms but u made it so simple. Now I have more interest on this topic🙂

  • @shashankpandey1966
    @shashankpandey1966 5 місяців тому

    I failed an interview today just because i dont know how retrievers works, Thankyou so much for this conceptual learning. Much appreciated. Thanks.

  • @abutareqrony4513
    @abutareqrony4513 9 місяців тому +1

    Just an awesome explanation. Love you bro. Make more videos for us.

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

    sir , you are Amazing

  • @AsmaaHANINE-s7j
    @AsmaaHANINE-s7j 5 місяців тому

    awesome !! so clear. A natural born teacher !

  • @omsundaram4377
    @omsundaram4377 8 місяців тому

    Krish ji , you are looking like Sakal...jokes apart great video and good learning content ..

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

    I am with your look.

  • @AvisekSwain-r6v
    @AvisekSwain-r6v 5 місяців тому

    Great videos Krish. You know exactly how to present and make us understand. Are there any specific videos on LangChain Agent ?

  • @sandeeppvn0503
    @sandeeppvn0503 9 місяців тому +2

    Can we use LECL to implement these? It would be helpful if you could show how to use LECL in your future videos also.

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

    Waiting for next video

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

    Feels like a Shoulin Monk😀 nice

  • @iamchiragdahiya
    @iamchiragdahiya 4 місяці тому

    can't we use chain like prompt|retriever|llm|output_parser like we did earlier?

  • @RahulPrajapati-jg4dg
    @RahulPrajapati-jg4dg 8 місяців тому

    looking Good sir 😃

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

    You look sharp Mr Naik

  • @venkateswarithota9691
    @venkateswarithota9691 2 місяці тому

    Yes of course,you are completely looking different

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

    I love this seires. Please dont stop!

  • @summa7545
    @summa7545 9 місяців тому +1

    Hi krish, will you create a new episode on usage of various types of retrieval chains? You used retrievalqa in your earlier episode, then bappy did use different retrievar in his episode. Could you provide us a list of scenarios to use specific functions? 😅

  • @omkarjamdar4076
    @omkarjamdar4076 9 місяців тому +1

    Please tell the minimum config. of laptop to run this project, and also for 7b model.
    Are laptops capable of running it if yes recommend future proof ones

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

      I am not an expert but I think you could buy a laptop which has rtx 3060 graphics card or above it would pretty fast when running 7b model. I am using 2018 acer nitro 5. It has gtx 1050ti graphics and 16 gb ram. I use ollam to run open-source quantized models. It's is slow but it accomplish the task. Either buy a laptop which has graphic rtx 3060 or above. Or buy a mac. Also you could fine tune the models if you have mac or rtx 3060

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

    will this video be available to all in your UA-cam channel

  • @hamidraza1584
    @hamidraza1584 9 місяців тому +1

    Looking funny man. Love from Lahore Pakistan

  • @phuloriavivek
    @phuloriavivek 9 місяців тому +1

    Hi Krish. Thank you so much for your amazing content. These videos have really been helping me in my GenAI journey.
    I am stuck in one place though
    I want to use an output parser -(eg a on the output. But I am not able to do that. Tried a lot of different methods to solve this, but , but not able to debug .
    If possible, could you please guide how this may be done?
    Thank you so much in advance.

  • @arjunraj3920
    @arjunraj3920 9 місяців тому +1

    waited for a lifetime to get a response.....
    my specs are 8gb ram
    i5 12th
    will i get some output

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

    Will check for different document loaders, mainly the microsoft one :)

  • @Danny_DB-xi5lo
    @Danny_DB-xi5lo 9 місяців тому +1

    Hi Krish...
    Actually I was developing an end-to-end chatbot application for multiple PDF upload from UI with the help of streamlit framework.
    I used Recursive text splitter and chunking, then huggigface embeddings and chromadb vextorstore. also used Conversational Retrieval Chain.
    LLM used gpt-3.5-turbo
    But i am facing issues to get response like repetitive response sometimes, or last query's response if i ask irrelevant questions, sometimes correct response, Can you guide me please

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

      Could you provide me your github? I aint Krish but i might know how to help

  • @iamchiragdahiya
    @iamchiragdahiya 4 місяці тому

    Hello Sir, Ollama Embedding execute karte hue following error is coming, how to resolve?
    ValueError: Error raised by inference endpoint: HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded with url: /api/embeddings (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

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

    Hi krish, can you run the same with gpu cuda what are the changes need to apply. Before running llms, how to confirm cuda activated or not. I just checked with tensorflow and pytorch it is detecting xuda version, but this is enough or need to test some more tests. Please reply. Thanks.

  • @appikumar-d8l
    @appikumar-d8l 9 місяців тому

    @krish why this is advanced rag concepts, yiu have already explained the retrieverQA concepts right.....i dint get what is tge difference

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

    Hey bro whatsup with your hair style man, it's really cool man, nice

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

    Thanks for the video, could you also please add some topics for RAG -> Qdrant, LLamaindex Parser, Nomic-embeding text

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

    awesome. You are Good

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

    Very helpful Video , can you make a video on how to load multiple pdf files to create RAG pipeline and connect with azure openai,its will be very useful,currently you are handling with only file.

  • @SujeetKumar-tl3lq
    @SujeetKumar-tl3lq 9 місяців тому

    Thanks for video, I had question, retrieval_chain.invoke() in this function you are passing only query, where is context, is that optional ?

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

      The retrieval_chain is taking care of getting the context.
      response = retrieval_chain.invoke({"input": "what is attention"})
      response
      when executed above code, the response is:
      {'input': 'what is attention',
      'context': [Document(page_content='3.2 Attention
      An attention function can be described as mapping a query and a set of key-value pairs to an output,
      where the query, keys, values, and output are all vectors. The output is computed as a weighted sum
      3', metadata={'source': 'attention.pdf', 'page': 2})],
      'answer': 'Based on the provided context from the paper "Attention Is All You Need" by Ashish Vaswani et al., I can answer your question.

      According to the text, an attention function can be described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is computed as a weighted sum.

      In simpler terms, attention refers to a mechanism that allows a model to focus on specific parts of an input sequence (or key-value pairs) based on their relevance or importance. This process involves comparing the input sequence with the query vector and computing weights for each position in the input sequence. The output is then computed by taking a weighted sum of the values, where the weights are learned during training.

      Attention has been used successfully in various tasks such as reading comprehension, abstractive summarization, textual entailment, and learning task-independent sentence representations.

      Please let me know if you find this answer helpful!'}
      It has your input,context and answer fields

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

    Krish u look handsome now !!!

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

    Please make videos of RAFT also.

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

    reddy garo😝🔥🔥

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

    Hi, where to find these RAG Q&A Chatbot With Chain And Retrievers JOBS ONLINE ?? does it require prior building experience ??

  • @Prashanthsheri-l4x
    @Prashanthsheri-l4x 9 місяців тому

    can you create an API with streamlit UI where user can upload a pdf documents and chat with it .....API and Streamline can do the work..I liked your video

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

    Waiting

  • @eventsjamaicamobileapp1426
    @eventsjamaicamobileapp1426 8 місяців тому

    Great

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

    tanks krish !

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

    🙏

  • @Prashanthsheri-l4x
    @Prashanthsheri-l4x 9 місяців тому +1

    Kindly create an API on RAG with PDF documents rather than just Notebooks

  • @amritsubramanian8384
    @amritsubramanian8384 8 місяців тому

    Gr8 videoo

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

    Hi,
    when I run :
    retrieval_chain = create_retrieval_chain(retriever,document_chain), I keep on getting this error:
    AttributeError: 'function' object has no attribute 'with_config'
    Does anyone know how to fix it?

    • @arshadeepsingh7280
      @arshadeepsingh7280 18 днів тому

      You must be missing a paranthesis here :retriever = db.as_retriever():

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

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

    When I run:
    response=retrieval_chain.invoke({"input":"Scaled Dot-Product Attention"})
    I am getting this error:
    TypeError: can only concatenate str (not "ChatPromptValue") to str
    What to do???

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

    Super cool!

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

    It is true! Hehe

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

    Loved it!

  • @twinklepardeshi3113
    @twinklepardeshi3113 9 місяців тому +1

    First comment ❤

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

    First like

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

    Krish Sir I am getting this error:
    ValueError: Error raised by inference endpoint: HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded with url: /api/embeddings (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
    Please help me out!

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

      I am also getting same error from "retrieval_chain.invoke" method. Please help us with the solution @Krish Ji

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

      ​@@jayaprakash7348 I also got the same error, downloading ollama and running llama2 model locally will fix this!

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

      @@jayaprakash7348 I also got the same error. downloading ollama and running llama model locally would fix this.