Skip to content

Conversation

@FunMelon
Copy link
Contributor

Just like #361 (comment) , I extracted the hard coded fields from the code and stored them in fragment.json. For readability, I used prefix naming to indicate which part of the program prompt each fragment is working on.Now it is possible to customize all parts of the prompt without changing the framework
I verified the correctness of fragment I added in the Chinese prompt template:
image
As a result, the content of fragmentjson has swelled a lot. I think adding comments is necessary for readability. Considering that json files cannot have comments, I once considered replacing them with configuration files in other formats (such as YAML), but gave up for compatibility with the tasks in the examples.
In addition, I also want to add similar images in the issue I mentioned to illustrate the process of constructing prompts, but it is currently unclear whether PNG images or Mermaid are more suitable?

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