Refine the Code Generation Prompt

The current AI prompt used for generating code suggestions for code generation needs to be reviewed and optimized to improve its effectiveness. The goal is to analyze the prompt, identify potential areas for enhancement, and implement changes that can drive better results as measured by the acceptance rate of the suggestions.

Plan

  1. Expand the LangSmith dataset for code generation using the approaches described in #466400 (comment 2021327471) and gitlab-org/ai-powered/eli5#18 (comment 2024649417).
  2. Analyze Current Prompt: Use the anthropic tool to evaluate the prompt and generate variations.
  3. Evaluate prompt variations using ELI5/LangSmith to measure the impact of the changes.
  4. Propose and implement changes to the prompt behind a feature flag.
  5. Document the changes made and the rationale behind them. Prepare a report summarizing the findings, changes, and results.

The above plan was designed with reference to Improve instructions around including X-Ray lib... (#466400 - closed), which served as a POC/trial of the overall prompt evaluation process. See the documentation and results in #466400 (closed) for further context as you work through this issue.

Success Metrics

  • Increased acceptance rate of AI-generated code suggestions.
  • Clear documentation of improvements and their impact on performance.
Edited by 🤖 GitLab Bot 🤖