Routing with LangChain - Basics - Semantic Routing vs. LLM Classifier

In this Video I will show you why you want to perform routing in langchain and how you can do routing. We will explore Semantic Routing (cosine similarty) vs LLM based Classifier as Router.
Timestamps
0:00 Intro to routing
0:18 Semantic Routing
4:13 LLM based Classifier

Пікірлер: 19

  • @mr.daniish
    @mr.daniish3 ай бұрын

    Short, crisp and clear! Another amazing video

  • @codingcrashcourses8533

    @codingcrashcourses8533

    3 ай бұрын

    thank you! Follow up video about routing DBs will be released on thursday.

  • @user-we3qo9kj4q
    @user-we3qo9kj4q3 ай бұрын

    Yes, finally, thank you marcus

  • @yazanrisheh5127
    @yazanrisheh51273 ай бұрын

    Please continue uploading these. I was following your old LangChain videos before LCEL and now I still find LCEL a bit confusing. Can you make a video on what exactly is runnable and the differences? RunnableLamda, RunnablePassthrough and any other runnables etc...

  • @codingcrashcourses8533

    @codingcrashcourses8533

    3 ай бұрын

    Yes :). Will so that

  • @chikosan99
    @chikosan993 ай бұрын

    Amazing! Thanks📍

  • @codingcrashcourses8533

    @codingcrashcourses8533

    3 ай бұрын

    Follow up Video is released today

  • @nintendo2000
    @nintendo20002 ай бұрын

    This is the clearest video out there about routing with LangChain. Amazing, thank you! Would you say it is possible to fine-tune a model to become better at classifying so that I can use your second method (LLM-based classification) on top of that fine-tuned model?

  • @ihateorangecat
    @ihateorangecat3 ай бұрын

    Can I request a video about Embeddings..? Without using OpenAi embeddings but with others free APIs like huggingface etc.. I am really struggling with embeddings these days. Hoping to see it.❤🤗

  • @codingcrashcourses8533

    @codingcrashcourses8533

    3 ай бұрын

    Currently not planned, sorry. My embeddings related videos hardly got any views in the past.

  • @seththunder2077
    @seththunder20773 ай бұрын

    In the part about cosine similarity, I have 2 questions: 1) Why did you use cosine similarity and not dot product for instance or any other method? 2) Shouldn't be there a certain threshold value that u can put to determine how close are they?

  • @codingcrashcourses8533

    @codingcrashcourses8533

    3 ай бұрын

    1. Cosine similarity seems to be best suited as far as I know. This is what I read in multiple papers and is my default. 2. Thresholds are hard to define since values depend on what you ask. A better approach is to perform some kind of reranking

  • @rakeshkumarrout8501
    @rakeshkumarrout85012 ай бұрын

    this is awsome how can we add vectorstore to it? and can you modify this according to this output code "self_query_retrieval_chain = ( {"context": itemgetter("question") | self_query_retriever, "question": itemgetter("question")} | RunnablePassthrough.assign(context=itemgetter("context")) | {"response": rag_prompt | chat_model, "context": itemgetter("context")} )"

  • @codingcrashcourses8533

    @codingcrashcourses8533

    2 ай бұрын

    Please check out my follow up video. Everything is explained there :)

  • @StudioSe7enDesigns
    @StudioSe7enDesigns2 ай бұрын

    How do you think this pairs up against something like Langgraph?

  • @codingcrashcourses8533

    @codingcrashcourses8533

    2 ай бұрын

    Will have to dive into langgraph first:)

  • @yazanrisheh5127
    @yazanrisheh51273 ай бұрын

    Since langchain is alwyas changing, can you please show us at the start of every video what version you're using? Thanks

  • @codingcrashcourses8533

    @codingcrashcourses8533

    3 ай бұрын

    There is a requirements file in my repo

  • @rajahaxeeb

    @rajahaxeeb

    3 ай бұрын

    @@codingcrashcourses8533 Can you please share repo/code link?