You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ChunJen Hello there! I'm here to help you with your software issue. I can assist with bug fixes, answer questions, and even guide you on how to become a contributor. Let me know how I can assist you!
The issue you're experiencing with the Langflow 'Prompt' component, where all variables are being replaced by the same output, might be related to how dynamic variables are processed and replaced. In Langflow, the 'Prompt' component uses the process_prompt_template function and update_template_values utility to ensure that dynamic variables are correctly replaced with the intended values from previous outputs [1].
To address this issue, you might want to check the following:
Template Configuration: Ensure that the template is correctly configured to handle multiple outputs. Verify that each variable in the template is correctly mapped to the corresponding output from the previous components.
Variable Replacement Logic: Review the logic used for replacing dynamic variables. Make sure that the process_prompt_template function is correctly processing each variable and that update_template_values is updating the template with the correct values.
Component Connections: Double-check the connections between components in your flow to ensure that the outputs are being routed correctly to the 'Prompt' component.
If these steps do not resolve the issue, it might be helpful to look into the specific implementation of the process_prompt_template and update_template_values functions to ensure they are functioning as expected in your setup.
Bug Description
Prompt component should combine the results from previous output correctly, but all been replaced by one of the outputs.
Who can help?
Backend or Full Stack Engineers
Operating System
Windows 11
Langflow Version
1.0.17
Python Version
3.12.4
Screenshot
Prompt:
collect outputs from previous flow
Bug output (check the prompt output):
All {variable} become the same content.
But check each output from previous, they all correctly return the message(different message):
(samples from output)
Reproduction:[the prompt]
The text was updated successfully, but these errors were encountered: