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

Json Example in TextField Node not possible. #212

Closed
j3sch opened this issue Jan 14, 2024 · 1 comment
Closed

Json Example in TextField Node not possible. #212

j3sch opened this issue Jan 14, 2024 · 1 comment

Comments

@j3sch
Copy link

j3sch commented Jan 14, 2024

I would like to give GPT an example in my prompt of what the output should look like.
My prompt looks like this:

The JSON object should have the following format:

{
  "test": "example text"
...
}

The problem is that it is then recognized as an input by ChainForge, although it should not be one.

Thanks for the great app and keep up the good work!

@ianarawjo
Copy link
Owner

ianarawjo commented Jan 14, 2024

Hey! Thanks for the interest. You can use Tabular Data nodes for this —inputs aren’t treated as potential templates (https://chainforge.ai/docs/prompt_templates/). Alternatively, you can escape braces with .

But we know its annoying and are planning to make some kind of toggle in the future that lets you change settings on a TF node. #207

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

No branches or pull requests

2 participants