Version 2.11.1 Release Notes
Released on January 18, 2025 - This release brings powerful AI search capabilities to the document library, complete document versioning UI, and significant performance improvements.
π― Highlights
AI Search
Semantic search with document name display
Document Versioning
Full version history with diff visualization
68% Faster
Major performance optimizations
β¨ AI Search in Document Library
The document library now features a powerful AI-powered search capability that provides intelligent answers based on your documents.Key Features
Semantic Search Toggle
Semantic Search Toggle
Switch between traditional keyword search and AI-powered semantic search with a single click. The AI search uses advanced natural language processing to understand the intent behind your queries.
Document Name Display
Document Name Display
No more cryptic document IDs! The AI search now displays actual document names as clickable buttons, making it easy to identify and access source documents.Before:
099fdd05...
, 3d7c39a7...
After: Project Requirements.pdf
, API Documentation.md
Real-time Responses
Real-time Responses
Get instant AI-generated answers with a 500ms debounce for optimal performance. The system intelligently processes your query and returns relevant information from your documents.
Source Attribution
Source Attribution
Every AI answer includes clear source attribution with clickable document links. Click any source document to instantly open it in the preview modal.
How It Works
- Enable AI Search: Click the sparkles icon in the library search bar
- Type Your Query: Enter a natural language question
- Get Instant Answers: AI analyzes your documents and provides relevant answers
- Explore Sources: Click on source documents to view the full content
Technical Implementation
π Document Versioning UI
Complete user interface for document version management with visual diff tracking.Version History Features
- Chronological version display
- Expandable version details
- Visual indicators for current version
- Model attribution badges
Version Metadata
Each document version includes:- Version Number: Sequential versioning
- Created By: AI model attribution (name, provider, version)
- Timestamp: Creation time with relative display
- Change Summary: Brief description of modifications
- Content Diff: Additions, deletions, and modifications
β‘ Performance Optimizations
Major performance improvements across the document preview system.Optimization Metrics
Metric | Before | After | Improvement |
---|---|---|---|
Bundle Size | 312KB | 100KB | 68% reduction |
Memory Usage | 150MB | 60MB | 60% reduction |
State Variables | 13 | 1 (useReducer) | 92% reduction |
Re-renders | Frequent | Minimal | Memoized |
Technical Improvements
State Management
State Management
Replaced 13 individual state variables with a single
useReducer
for centralized state management.Import Caching
Import Caching
Implemented dynamic import caching to prevent redundant module loading.
Memoization
Memoization
Comprehensive memoization with
useMemo
, useCallback
, and React.memo
for optimal rendering performance.Lazy Loading
Lazy Loading
Implemented React.lazy and Suspense for code splitting and on-demand loading of heavy components.
π§ API Enhancements
Enhanced RAG Query Response
The RAG API now returns structured data with document metadata:New Hooks
useKnowledgeBaseSearch
: Complete hook for AI search functionality
π Bug Fixes
- Fixed document ID display showing cryptic identifiers instead of names
- Resolved null safety issues in document ID handling
- Fixed memory leaks in document preview component
- Corrected AbortController cleanup in useEffect hooks
- Fixed XSS vulnerabilities with DOMPurify implementation
π Internationalization
All new features include complete translations for:- English (en)
- Turkish (tr)
- Chinese (zh)
- Hindi (hi)
- Japanese (ja)
- Dutch (nl)
π Security Improvements
Important security enhancements in this release
- Enhanced input sanitization with DOMPurify
- Proper cleanup of AbortController to prevent memory leaks
- Type safety improvements replacing
any
types - Content Security Policy (CSP) headers for preview modal
π¦ Migration Guide
For Developers
-
Update Dependencies
- Database Migration No database migrations required for this release.
- Environment Variables No new environment variables required.
For Users
- Clear Browser Cache: Recommended to ensure all performance optimizations take effect
- Refresh Library Page: The new AI search toggle will appear automatically
- Re-index Documents: Optional but recommended for optimal search performance
π Whatβs Next
Looking ahead to v2.12.0:- Multi-language document support
- Advanced version merging capabilities
- Collaborative document editing
- Enhanced AI model selection for document generation