Replies: 2 comments 2 replies
-
Hey @alice17! I'm here to help you with your LangChain issue. I'm a bot designed to assist with bug fixes, answer questions, and guide you on becoming a contributor. Let's tackle this together! To return an answer with sources using LCEL and stream it to the playground, you can follow these steps:
This code will parse and stream the answer with sources to the playground, showing the intermediate steps and final output, and use output parsers to structure the response. The LCEL chain ensures that streaming works seamlessly, even when using parsers at the end of the chain [1][2][3][4]. |
Beta Was this translation helpful? Give feedback.
-
Hello, have you solved it? Can you tell me the solution? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I would like to parse an answer on the playground with this format:
I was able to extract the links through RunnablePassthrough somewhere in the chain but I can't concatenate the list of links to the answer.
Is it possible? I find LCEL extremely complicated. I add that I would also like to stream the answer to the playground.
System Info
langchain==0.2.7
langchain-community==0.2.7
langchain-core==0.2.32
langchain-huggingface==0.0.3
langchain-ollama==0.1.0
langchain-openai==0.1.14
langchain-text-splitters==0.2.2
Beta Was this translation helpful? Give feedback.
All reactions