Replies: 1 comment
-
Would love to see this happen, just ran into this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I would like to know if you're in adding support for nested prompt variables:
I know this is easily possible with a
RunnableMap
before thePromptTemplate
via aRunnableSequence
. However, I think that creates unnecessary overhead and latency (due to the RunnableMap) and adds more complexity.The implementation could be done like this:
{nested.a}
input["nested.a"]
(existing logic)Lodash.get("nested.a", input)
(new logic)Let me know what you think.
Beta Was this translation helpful? Give feedback.
All reactions