Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/Escape JSON in Prompt Message #3901

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

HenryHengZJ
Copy link
Contributor

Bug: Currently when you are trying to ask LLM to output a JSON by giving a few examples in the prompt, langchain/flowise by default will get everything enclosed in curly brackets as variables. Therefore, it will incorrectly identify the JSON examples as variables.

#968

Fix: Identify if there is a colon : within the curly brackets, if yes, we will not extract the value as variable.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant