AI Assistant - prompt prefix
Answered
Hey,
I am working in Unity with C#, but sometimes the AI Assistant gives me code in other languates (mainly Java) when i ask a question.
Is there a way I can alter the prompt which rider sends, so I can make sure I get the correct answers? On that note, I may want to do some other stuff, like asking for less comments etc.
Thanks!
Please sign in to leave a comment.
Hello Doomchecker ,
You can add your own prompts to the AI Assistant prompts library.
Check documentation for more details: Add your own prompts to prompts library.
Hey Margarita,
thanks for your answer!
This is a great feature, but having to do this every time I want to write a prompt is a bit clunky. Is there a way to automatically add a prefix, like 'Write in C#'?
By the way, there's a small bug in the window you mentioned. When I write the prompt, the prompt name gets overwritten. Just a sidenote, though.
Hello Doomchecker ,
What IDE version do you use? A similar issue was fixed in the latest IDE release:
https://youtrack.jetbrains.com/issue/LLM-3027
For now, it's not possible. You can create a custom Prompt via Prompt Library (Settings | Tools | AI Assistant | Prompt Library), but it should be applied manually in each new Chat instance. Also, if chat is long, then prompt can be forgotten and you should reapply it once again.
A similar feature requests are submitted. Please vote for them:
https://youtrack.jetbrains.com/issue/LLM-393
https://youtrack.jetbrains.com/issue/LLM-221