Is it possible to include comments in AI-Studio’s “Guidance for AI”?
It appears that comments can be used in scripts.
javascript
/*
This is a multi-line comment.
This is useful for long explanations or commenting out multiple lines of code at once.
*/
console.log(“This line will be executed”); // Example of use in combination with single-line comments
1 Like
I believe AI is bad as ignoring things, but you could say “any line in the prompt starting with // is a comment”?
I would argue that if you need comments, maybe AI needs them too to understand?
1 Like
When giving instructions to an AI,
I think that if you want to provide additional explanations, you should write them as clear comments. For example, “The summary should be concise and clear. If the task doesn’t have a description, don’t do anything.”
My feeling is that, as someone writing guidance, I’d like to have my own comments, like in a script.
One way many developers think about comments is this:
“If you need them, your code isn’t clear enough.”
I think the same could be said for AI instructions.
4 Likes