Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Overall Task Context in Code Completion for Better Accuracy #487

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

yangbobo2021
Copy link
Contributor

This pull request introduces an overall task context feature to the code completion engine as outlined in issue #325. The changes are geared toward narrowing down the scope and improving the precision of code modification suggestions by considering the broader task the developer is working on.

Changes

  • A new function createTaskDescriptionContext was added to gather the task description and context.
  • The task description context is now incorporated into the prompting process for code completions, enhancing relevance and accuracy.
  • The changes are aimed at enhancing developer productivity through more precise code completion suggestions.

By integrating a task-level context, we expect the suggestions provided by the code completion engine to not only become more relevant but also more aligned with the task at hand, aiding developers in achieving their modification goals with greater efficiency.

Closes #devchat-ai/devchat/issues/325.

- Implemented createTaskDescriptionContext to fetch task desc.
- Integrated task description into the prompt generation process.
- Enhanced code completion accuracy by embedding task context.
@yangbobo2021 yangbobo2021 merged commit 3a96ce2 into main Apr 14, 2024
1 check passed
@yangbobo2021 yangbobo2021 deleted the feature/task-context-code-completion-#325 branch April 14, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant