Commit Graph

12 Commits

Author SHA1 Message Date
ahmedjawedaj
accfcb1d8e feat: refactor UX with toast notifications and FolderSyncManager component
- Replace all alert() calls with toast notifications for better UX
- Extract FolderSyncManager component to reduce page.tsx complexity
- Add toast notification system with success/error/info states
- Add missing icons (CheckCircle2, AlertCircle) for toast UI
- Improve code organization per PR #122 feedback

Addresses PR #122 reviewer comments on architecture and UX
2026-01-14 13:32:48 +05:00
Scarlet Moore
cddc5160e8 work/llm-error-framework (#35)
* feat: enhance error handling and logging in DocumentAdder

* feat: implement robust error handling utilities for API exceptions

* style: fix formatting issues

* feat: implement retry logic for LLM API calls to handle rate limits and timeouts

* feat: enhance document validation and error handling in file uploads

* feat: enhance valid tools configuration and error handling in project structure

* feat: refactor error handling and validation functions for improved robustness

* fix: pre-commit format

* feat: implement configuration validation for tool consistency and enhance error handling in file uploads

* feat: add exception hierarchy for LLM service errors to improve error handling

* chore: update repo roster images [skip ci]

* chore: update repo roster images [skip ci]

* Integrate documentation updates and rebase onto upstream dev

* Implement error handling utilities and validation functions

* feat: implement multi-provider support with enhanced capability handling and model extraction

* fix: enhance error handling and validation across multiple modules

* chore: remove unused local environment configuration file

* commit

* fix: improve error handling and logging in utilities and error handler

* fix: enhance error handling and logging across multiple modules

* fix: enhance async initialization and validation in multiple modules

* feat: implement LLM error framework

- Add LLM-specific exception classes in exceptions.py
- Create error mapping utilities for standardized error handling
- Implement base provider interface with error handling
- Add OpenAI provider implementation with error mapping
- Define LLM types and response structures

* feat: add missing registry and telemetry modules

- Add registry.py for provider registration system
- Add telemetry.py for basic LLM call tracking
- Complete the LLM error framework implementation

* fix(llm): safer sync wrapper + smarter retries + optional openai mapping

* Fix LLM error framework and code quality improvements

* feat: update environment configuration and improve logging in LLM services

* Update README.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Refactor code structure for improved readability and maintainability

* chore: update documentation, improve error handling, and enhance file upload validation

* feat: enhance error handling and configuration validation across multiple modules

* feat: add configuration for pytest, improve error handling, and enhance byte formatting utilities

---------

Co-authored-by: scrrlt <smo0051@student.monash.edu>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-01-13 16:58:13 +11:00
Tushar Khatri
2de2772d43 Implement LlamaIndex RAG pipeline with dynamic provider selection
- Refactor knowledge base initialization to support dynamic RAG provider selection
  based on RAG_PROVIDER environment variable instead of hardcoded RAGAnything

- Implement VectorIndexer component for dense vector storage
  * Support FAISS for fast similarity search when available
  * Fallback to pickle-based storage with numpy cosine similarity
  * Store normalized vectors and metadata separately
  * Create vector_store directory structure for LlamaIndex KBs

- Implement DenseRetriever component for vector-based search
  * FAISS-based fast search when available
  * Numpy cosine similarity fallback
  * Return clean, formatted context without truncation or relevance prefixes
  * Compatible with existing RAG pipeline interface

- Update LlamaIndexPipeline to use PDFParser instead of TextParser
  * PDFParser uses PyMuPDF for reliable PDF text extraction
  * Supports both MinerU pre-parsed content and direct PDF parsing
  * Prevents raw PDF binary data from being indexed

- Modify KnowledgeBaseInitializer to use RAGService
  * Remove direct RAGAnything instantiation and configuration
  * Use RAGService which respects RAG_PROVIDER environment variable
  * Support all registered providers: raganything, lightrag, llamaindex, academic
  * Add generic statistics display for provider-agnostic KB info
  * Reduce initialization code from ~200 to ~90 lines

- Add PyMuPDF dependency for PDF text extraction
  * Required for PDFParser to extract clean text from PDF files
  * Version constraint: PyMuPDF>=1.23.0

- Fix DenseRetriever output formatting
  * Remove relevance score prefixes from retrieved chunks
  * Remove 800-character truncation limit
  * Use clean newline separators for better LLM context
  * Return formatted content suitable for direct LLM consumption

Storage structure comparison:
- RAGAnything/LightRAG: Uses rag_storage/ with knowledge graph files
- LlamaIndex: Uses vector_store/ with FAISS index or pickle embeddings

Key differences:
- RAGAnything: Makes 50-100+ LLM calls during KB creation for entity/relation extraction
- LlamaIndex: Makes 0 LLM calls during KB creation, only embedding API calls
- LlamaIndex is faster, cheaper, and avoids rate limits during indexing
- LLM only used during search/chat to generate final answers from retrieved context

Tested with:
- PDF document parsing and indexing
- Vector similarity search and retrieval
- Dynamic provider switching via environment variable
- Fallback to numpy when FAISS unavailable
2026-01-11 15:34:22 +05:30
Pancake
42fb0ec8fd release ver0.4.0 2026-01-09 00:57:28 +08:00
Pancake
efc2007911 Apply local configuration and UI enhancements after dev merge 2026-01-09 00:43:52 +08:00
FacundoMajda
2e48e5768b Add embedding providers, not just openAI. 2026-01-07 09:52:27 -03:00
Pancake
cf595bf562 refactor: restructure project architecture with new services and logging modules 2026-01-06 23:49:33 +08:00
ahmedjawedaj
5aae759acc fix(ci): Export KnowledgeBase alias in kb.py to fix import errors 2026-01-06 00:30:20 +05:00
ahmedjawedaj
417295ec6d fix(ci): Resolve linting issues and file formatting
- Fixed unused import in progress_tracker.py
- Fixed end-of-file formatting in SVG assets
2026-01-05 23:57:01 +05:00
Pancake
3f8a7f523a structure improvement 2025-12-30 17:14:47 +08:00
Pancake
4ecc0a18c4 update 2025-12-29 12:52:34 +08:00
Pancake
fbb0b15cad Initial commit 2025-12-28 23:45:41 +08:00