What are Runnables in Langchain Expression Language? - Deep Dive Part 2
Vložit
- čas přidán 25. 08. 2024
- In this video, I go over the Runnable Interface in more detail and show you how you can use it with Langchain Expressions Language in your langchain projects.
Relevant Links:
Github Repo - github.com/0xm...
Langchain Runnables - python.langcha...
Find me:
beacons.ai/0xm...
/ discord
One of the best and most important videos with runnable example and walk thru. This is a hidden gem for budding GenAI minds
Thank you for the kind words! I think for these types of videos going forward, I'm going to just throw them in a series called "Langchain for the Homies". Dev videos aren't necessarily the main focus of the channel like they were in the beginning, but I still enjoy sharing what I'm learning on that side and hope I can help save fellow devs some headaches I hit with langchain as I am building my stuff.
Thanks, Merc; really enjoyed this. Great detail that is missing from a lot of the tutorials. Only detail I have that I haven't seen answered elsewhere, is good examples of configurable_fields and configurable_alternatives used in chains, would love to see examples where chain inputs are used to construct later runnables in a chain, for example having something like the search_kwargs e.g. k configurable as an input to a retriever.
Glad you liked it! I can try to look into this other stuff you’d like to see and see if I can incorporate it in my next project I’m building
Thanks @@heymichaeldaigler that would be fantastic, if your taking suggestions ;-) Haven't found a single good example of unit testing LCEL Runnables; I'm a big advocate of TDD, and I am surprised by how little information is available on this. If you can point me towards any material you've come across on this, it would be much appreciated. Thanks again for the video, recognise its a significant investment of your time and effort.
Thanks for the video Michael, very interesting.
I couldn't access the repo unfortunately.
OMG I left the visibility on private -_-. Try now! Thanks for letting me know!
U need to continue thids... no1 has explained as good as you tbh
Appreciate it. I do think it may be due for a 3rd video. What aspects do you feel are not discussed often enough with LCEL? Or anything specific you'd want covered.
Great job with this explanation mike. Question, how do we pass more than one variable to the runnable when we invoke the chain? for example, if my prompt has 2 input vars like {height} and {weight}. i have a chain that looks looks like "chain = "({height: RunnablePassthrough}) and that works but if ii use chain = "({height: RunnablePassthrough(), "weight": RunnablePasstrough()} it only picks up one value (height) how do we pass multiple differing inputs?
i want to know about runnable in parallel.