Using a Prompt Template node as an input for another Prompt Template node (workaround) #2293
Unanswered
ByteParkouring
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
-
Since I cannot connect multiple Prompt Template nodes directly with each other, are there any workarounds for this?
When I use a variable value "{{promptTemplate_0}}" in the second Prompt Template node, the output is:
"{"lc":1,"type":"constructor","id":["langchain_core","prompts","prompt","PromptTemplate"],"kwargs":{"template":"Schreibe einen kurzen Satz über {thema}","input_variables":["thema"]}}"
I would like the output to be with inserted real values inside the template like "Schreibe einen kurzen Satz über Autos" ('Autos' instead of '{thema}')
(My use case is that when chaining Prompts the second prompt should say something like
'The following prompt was used before: "{variable1}"
The resulting text was: "{variable2}"
The rating of the text was: "{variable3}"
Generate a better prompt so that the resulting text will receive maximum rating points.'
Beta Was this translation helpful? Give feedback.
All reactions