Passing few params to PromptTemplate #542
-
langchain==0.1.4 I have this simple chain that has few params, i 'd like to make them dynamic based on user input. I've seen few relatable examples but i'd like to know if they point to the right direction. Should I use api handler for that? and here from the examples
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This sounds like an LCEL question. You can use runnable lambdas or runnable generators to route to an appropriate chain based on an input. e.g., https://python.langchain.com/docs/expression_language/how_to/functions |
Beta Was this translation helpful? Give feedback.
-
It's the same issue i am facing here #394 but since we haven't share the solution the examples on the repo didn't work for me. |
Beta Was this translation helpful? Give feedback.
after much thinking and trying and sweat and teats.
Adding an empty history list on the request worked