Skip to content

v2.3.0 - Dual-Mode AI with Q&A Functionality

Choose a tag to compare

@vultuk vultuk released this 21 Aug 15:11
· 38 commits to main since this release

What's Changed

This minor release introduces a powerful dual-mode AI interface that lets users both modify content and ask questions about their markdown documents.

πŸš€ New Features

  • AI Ask Mode: New Q&A functionality to ask questions about markdown content without modification
  • Dual-Mode AI Interface: Enhanced AI modal with toggle between "Adjust" and "Ask" modes
  • Interactive Q&A: Ask questions about your markdown content and get formatted answers
  • Answer Display: Beautiful answer rendering with markdown support, copy, and clear actions

✨ Enhanced AI Capabilities

  • Mode Toggle: Switch seamlessly between content modification (Adjust) and information retrieval (Ask)
  • Smart Interface: UI adapts based on selected mode with contextual prompts and actions
  • Answer Rendering: Full markdown rendering in answer display with ReactMarkdown
  • Answer Actions: Copy answers to clipboard and clear functionality with accessibility support

πŸ”§ Technical Improvements

  • New API Endpoint: /api/ai/ask for question-answering without content modification
  • Improved Prompts: Cleaner prompt formatting for better AI responses (removed BEGIN/END markers)
  • Response Sanitization: Enhanced cleanup of AI responses to remove accidental code wrappers
  • Enhanced CSS: New styling for mode toggles, answer display, and action buttons

🎯 User Experience

  • Intuitive Workflow: Ask questions about content before or after making adjustments
  • Visual Distinction: Clear mode switching with proper visual feedback
  • Better Accessibility: ARIA attributes and role definitions for new interface elements
  • Contextual Help: Smart placeholders and UI that adapts to the selected mode

πŸ’‘ Use Cases

  • Content Analysis: Ask questions about document structure, content, or meaning
  • Research Assistance: Get explanations about complex topics in your markdown
  • Content Review: Understand document sections before making modifications
  • Learning Tool: Ask questions to better understand your own content

πŸ”§ Developer Experience

  • API Consistency: Both AI endpoints follow similar patterns and error handling
  • Better State Management: Enhanced component state for dual-mode functionality
  • Standardized Responses: Consistent response structures for both modify and ask operations

This release significantly expands the AI capabilities by adding a non-destructive way to interact with content through natural language questions.

Full Changelog: v2.2.0...v2.3.0