Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Use {{var}} instead of {var} to Avoid LaTeX Symbol Conflicts

Open zenyanbo opened this issue 1 year ago • 2 comments

Describe the feature you'd like Hello, I've noticed that using single curly braces { } can sometimes lead to conflicts with LaTeX symbols in prompt tempalte. To make things smoother, could we switch to using double curly braces {{ }} instead?

Additional context Screenshot_20240222_100638_Chrome

Screenshot_20240222_100557_Chrome

Benefits:

  • Reduces potential conflicts with LaTeX symbols.
  • Improves user experience, especially for math-heavy content.

Thanks for considering this improvement!

zenyanbo avatar Feb 22 '24 02:02 zenyanbo

hmm thats because langchain is using curly bracket syntax {} for prompt values. One workaround for your case is to encode the LaTeX symbol

HenryHengZJ avatar Feb 22 '24 15:02 HenryHengZJ

hmm thats because langchain is using curly bracket syntax {} for prompt values. One workaround for your case is to encode the LaTeX symbol

Ok, I get it. Thanks your explanation

zenyanbo avatar Feb 23 '24 16:02 zenyanbo