AI Positron Preferences
Various settings can be configured in :
- Enable AI Positron
- Deselect this setting to disable the AI assistant. Combined with the Project Options radio button, you can disable the AI assistant for certain projects.
- Context prompt
- The context provides useful information about the user to the AI and is used in each action and chat request to create more relevant and personalized responses.
- Additional context files
- A list of one or more referenced files (one per line) that the content is added to the Context value and used in all AI action prompts. The file paths can contain editor variables. To add, edit, or remove files, use the Add, Edit, Remove buttons below the text box.
- Auto-compact conversation
- When enabled (the default), the chat conversation is automatically compacted before a new message is sent if the context used by the conversation, including the message about to be sent, reaches 70% of the model's context window. The AI replaces older messages with a hidden summary, allowing the conversation to continue without exceeding the model's capacity. If this option is disabled, you can still compact the conversation manually using the Context Consumption/Compact button in the chat view.
- Automatic Validation and Correction
-
This section contains options for specifying if and when you want AI-generated content automatically validated:
- After generation, for validation problems in complete XML documents
- When enabled (default), AI-generated XML content is automatically validated and the AI attempts to fix any detected validation errors in complete XML documents returned by the AI model.
- After generation, for well-formedness problems in XML fragments
- When enabled, AI-generated XML content is automatically validated and the AI attempts to fix any detected well-formedness errors in XML fragments returned by the AI model.
- After insertion in the document
- When enabled (default), AI-generated XML content is automatically validated and the AI attempts to fix any detected validation errors when the AI-generated content is inserted into the document (in the editor).
Note:The AI will not be able to find solutions for certain types of errors, so some manual corrections will still be required in those situations.