carlrobertoh / CodeGPT

The leading open-source AI copilot for JetBrains. Connect to any model in any environment, and customize your coding experience in any way you like.
https://codegpt.ee
Apache License 2.0
1.04k stars 220 forks source link

Incorporation of Project-Specific Context for Enhanced GPT Prompts #146

Open haggbart opened 1 year ago

haggbart commented 1 year ago

To make the prompts more contextually aware and relevant, it would be beneficial to enable project-level settings that inject vital information about the project into the GPT model.

For instance, these settings might include information such as the project utilizing Vue.js and Vite. In fact, we could take it a step further by enabling the plugin to parse and understand the project's package.json file. This would provide the GPT model with a more comprehensive understanding of the project's dependencies and scripts.

These project-specific settings would ideally be saved at the project level and automatically loaded whenever the project is reopened.

carlrobertoh commented 1 year ago

Hi

Context-aware chat experience is the new feature on which I am currently working. Currently, the initial plan is to allow users to index their entire codebase (or single files only), which will be considered when asking questions.

moritzfl commented 9 months ago

As far as I see it, context-awareness regarding the codebase does not entirely cover the use case.

There might be company-wide or project-wide policies or language preferences that need to be applied for prompts. Or perhaps we have custom prompts per project (e.g. "Create code documentation" which also needs to be in the language of preference within the company).

So I think project-wide settings that can be checked into a git-repository make a lot of sense. It can be seen as a supplementary feature to the context-awareness for files in the project.