Cannot format LLMChain's output #5505
Unanswered
martin-dimi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I have the following setup:
The
HumanMessagePromptTemplate
is basically a massive list ofFor each of these entries, I'd like an updated value. I'd like to map the result onto an array that has the same order as the input.
How would I go about doing this? As you can see, I tried using a
CommaSeparatedListOutputParser
but the response I get back is:(note, I had to redact the actual old/new values from this post).
The issue is 2 fold:
res
isChainValues
where I'd expected to be[]string
(each element being a result)Website
andValue
whereas I expect it to be a simple json array of results.ChatPromptTemplate
only so that I can haveSystemMessagePromptTemplate
provide context. Do you think that's necessary?Beta Was this translation helpful? Give feedback.
All reactions