Chain two prompts #2346
Unanswered
darkostanimirovic
asked this question in
Support
Replies: 1 comment 1 reply
-
|
Hi @darkostanimirovic, if you use Langchain, you can wrap multiple invocations into a single trace: https://langfuse.com/docs/integrations/langchain/tracing#interoperability Also, if you pipe the output of one prompt into the next via Langchain itself, these should all be traced within a single trace in Langfuse. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I have two prompts where output of one feeds into the other. I'm only interested in running evaluation on the final result from the second prompt, and ignore the first one.
I'm doing this in Python with LangChain integration where I take one output and pass it into the second prompt. I wonder if this is the right way to do it. I would expect to see one trace with easy access to the first prompt and the second prompt, vs. having two separate traces where I go back and forth – I see this as one conversation, not two, and the score should apply to the whole conversation.
What's the best way to go about this? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions