Webstorm AI assistant doesn't have project context
Hello. I started using integrated AI functionality and I have some doubts, maybe I'm doing something wrong.
I'm using AI more than 3 months, but AI still works like it doesn't know my project at all. When I'm asking to generate some functions - it is only using context if I'm including into prompt directly. Sometimes it is very time consuming to do so. For my opinion, when I'm using integrated AI I expect that it will learn on my codebase and will provide appropriate solutions. But it isn't, unfortunately. Can I make it possible somehow? (I used Copilot plugin previously and it worked much better in that scenario, it learned what I'm doing and suggested code based on that)
Will be grateful for any clarification about that and what can I do.
请先登录再写评论。
By design, AI Assistant cannot train its LLM models on your project codebase. This is because the LLM models used in the JB AI service are third-party models provided by service providers like OpenAI (also Google in the recent future etc.).
There is a plan to allow customers to use their own custom (internally trained) LLM models (e.g. Llama etc.) implemented in their own infrastructure. This feature is planned as part of the AI Enterprise solution only and is not planned to be implemented for individual subscriptions (AI Pro), for now. The current planning is to implement it in the end of 2024 / start of 2025.
On the other hand, AI Assistant should be able to access your project files automatically and use them as context while you are asking questions related to your project codebase. It is necessary to have the option: Settings (
⌘ + ,
orCtrl + Alt + S
) > Tools > AI Assistant > Enable smart chat mode enabled.Could you please share some examples, screenshots, chat dumps and steps to reproduce or minimal reproduction to try to recreate the same scenario on our side? Which feature did you use when this issue occurred (AI chat, code generation etc.)? Which IDE and AI Assistant version do you have installed?
You can zip and upload the mentioned data to: https://uploads.jetbrains.com, just provide the uploaded file ID. Thank you!
Has there been an update on this? I used a trial of Cursor. It analyzed my codebase and gave me fantastic suggestions for making my code better. It went so far as to implement some of the changes across multiple files. Does Jetbrains AI do this? Are there plans for it to do so? I've used Jetbrains IDEs for years and prefer it. It doesn't make sense to pay for Cursor when I can stay in the Jetbrains ecosystem.
Talib Morgan
We are closely monitoring industry trends and features offered by similar products, and we're constantly exploring ways to improve AI Assistant. There is a similar feature request in our issue tracker: https://youtrack.jetbrains.com/issue/LLM-7148. Please check it and vote, follow it, if it looks similar to your requirement.