Enhance prompt
Improve your prompts before sending them to Bob. Click the sparkles icon in the chat input to automatically refine your request, making it clearer, more specific, and more likely to yield better results.
Why use this feature?
- Improved clarity: Your prompts become more understandable for the AI model
- Added context: The enhancement process uses relevant context such as the current file path or selected code
- Better instructions: Your enhanced prompt contains specific guidance for the AI, such as formatting preferences or detail level.
- Reduced ambiguity: The enhancement process eliminates unclear language and ensures Bob understands your intent
- Consistency: Your prompts follow a standardized format that works well with the AI
How it works
- Type your initial prompt in the Bob chat input box as you normally would
- Click the icon located in the bottom right of the chat input box
- Review the enhanced prompt to make sure it accurately reflects your intent.
- Send the enhanced prompt by pressing Enter or clicking the Send icon ()
The enhancement process works best with prompts that have a clear goal but need additional structure or context.
Example transformations
Basic example
Original prompt:
make a function to calculate taxEnhanced prompt:
Create a JavaScript function that calculates sales tax. The function should:
1. Take two parameters: price (number) and taxRate (decimal)
2. Return the calculated tax amount
3. Include proper error handling for invalid inputs
4. Include comments explaining the calculation logic
Please provide the complete function implementation with an example of how to use it.Limitations and best practices
-
Experimental feature: Prompt enhancement is still experimental. The quality of enhanced prompts may vary depending on your request's complexity and the model's capabilities.
-
Review carefully: Always review the enhanced prompt before sending it. The enhancement process might make changes that do not align with your intentions.
-
Iterative refinement: You can apply Enhance Prompt multiple times to iteratively refine your prompt until it is exactly what you want.
-
Start with clear intentions: While enhancement improves your prompts, starting with a clear idea of what you want will produce the best results.
-
Context matters: Enhancement works best when Bob has context about your current task. If you are starting a new conversation, provide some initial context before using Enhance Prompt.
By using Enhance Prompt, you can get more accurate and helpful responses from Bob while saving time on writing detailed prompts from scratch.
Pull requests
Bob can generate pull requests (PRs) and PR descriptions directly from your IDE, streamlining your development workflow and saving time.
Literate coding
Literate coding allows you to write code with AI assistance directly inside your editor. Instead of switching to a chat window or writing long prompts, you type instructions in plain language right where the code should go. Bob then generates the implementation for you in context and shows a diff of the changes.