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
I have multiple variables in my prompt, including:
skill skill_track objective difficulty
When I pass the values of these variables through the chat input component, and later attach the chat output component, the structure of the prompt gets distorted. The result is a poorly formatted and unstructured prompt.
This is the architecture
This is the prompt:
I pass the input text through the chat component in this way:
Is there any issue in my workflow or something else?
The text was updated successfully, but these errors were encountered:
zabih1
changed the title
Prompt Variable issue
Prompt Variables issue
Jan 24, 2025
The distortion in your prompt structure when passing variables through the chat input component could be due to several common issues related to variable handling in Langflow:
Invalid Characters: Ensure that your variable names do not contain invalid characters such as spaces, commas, periods, colons, semicolons, exclamation marks, question marks, slashes, backslashes, parentheses, and brackets. These characters are removed during processing, which can alter the structure of your prompt [1].
Variables Starting with Numbers: Make sure none of your variable names start with a number, as this can lead to issues with variable recognition and formatting [1].
Empty Variables: Check that none of your variables are empty strings, as this can cause problems in the prompt structure [1].
JSON-like Variables: If your variables resemble JSON (e.g., enclosed in {{ and }}), ensure they are properly formatted to be recognized correctly [1].
Review your variable names and values to ensure they adhere to these constraints. If the issue persists, consider using Langflow's debugging and logging functionality to trace the flow of data and identify where the distortion occurs [2][3].
I have multiple variables in my prompt, including:
skill
skill_track
objective
difficulty
When I pass the values of these variables through the chat input component, and later attach the chat output component, the structure of the prompt gets distorted. The result is a poorly formatted and unstructured prompt.
This is the architecture
This is the prompt:
I pass the input text through the chat component in this way:
Is there any issue in my workflow or something else?
The text was updated successfully, but these errors were encountered: