I was wondering if there is a kind of syntax or reserved words, operators or commands to work with ChatGPT. For example, how do you add an updated context based on the documentation of a particular library?
Implement a function in JavaScript using the latest ChartJS library (4.3.2). The function should take two arguments one for the canvas element and an object with the basic configuration of the chart. The function will return an ChartJS instance and plot a doughnut chart on the canvas element. The function should include a plugin to show the percentage value of each segment outside of the doughnut.
This kind of prompt will return a reply that does not use the latest version of ChartJS because it is limited to their training data until 2021.
I found some examples, on the internet, where people use [ and ] or < and > to create a new context:
Base on this context: [ some context here ]
Implement a function in JavaScript using the latest ChartJS...
Also, I found some prompts using special characters such as [INSTRUCTIONS], {snake_case_variable}, or anything inside of a character that isn't in the rest of the prompt (i.e. {}, [] ### ###...) to declare variables. But I want to know if this really works or where I could get an official or reliable source of information to understand how to craft prompts.