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

How It Works

  1. Enable AI Search: Click the sparkles icon in the library search bar
  2. Type Your Query: Enter a natural language question
  3. Get Instant Answers: AI analyzes your documents and provides relevant answers
  4. Explore Sources: Click on source documents to view the full content

Technical Implementation

// Enhanced askKnowledgeBase with document name fetching
export async function askKnowledgeBase(
  userId: string,
  query: string,
  projectUuid?: string
): Promise<{
  answer?: string;
  documents?: Array<{ id: string; name: string }>;
  sources?: string[];
}>

πŸ“š 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

MetricBeforeAfterImprovement
Bundle Size312KB100KB68% reduction
Memory Usage150MB60MB60% reduction
State Variables131 (useReducer)92% reduction
Re-rendersFrequentMinimalMemoized

Technical Improvements

πŸ”§ API Enhancements

Enhanced RAG Query Response

The RAG API now returns structured data with document metadata:
{
  "results": "Your AI-generated answer...",
  "sources": ["doc1.pdf", "doc2.md"],
  "document_ids": ["uuid1", "uuid2"],
  "documents": [
    { "id": "uuid1", "name": "Project Requirements.pdf" },
    { "id": "uuid2", "name": "API Documentation.md" }
  ]
}

New Hooks

useKnowledgeBaseSearch: Complete hook for AI search functionality
const {
  query,
  answer,
  documents,
  sources,
  isLoading,
  error,
  setQuery,
  clearAnswer
} = useKnowledgeBaseSearch();

πŸ› 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

  1. Update Dependencies
    pnpm update
    pnpm install
    
  2. Database Migration No database migrations required for this release.
  3. Environment Variables No new environment variables required.

For Users

  1. Clear Browser Cache: Recommended to ensure all performance optimizations take effect
  2. Refresh Library Page: The new AI search toggle will appear automatically
  3. 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

πŸ“ Full Changelog

View the complete list of changes in our GitHub repository.

πŸ™ Acknowledgments

Special thanks to all contributors and the community for their feedback and support in making this release possible.