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.

0

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 (⌘ + , or Ctrl + Alt + S) > Tools > AI Assistant > Enable smart chat mode enabled.

When I'm asking to generate some functions - it is only using context if I'm including into prompt directly.

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!

1

请先登录再写评论。