Skip to content

Conversation

@ahmedjawedaj
Copy link
Contributor

Description

A clear and concise description of the changes.

Related Issues

  • Closes #...
  • Related to #...

Module(s) Affected

  • agents
  • api
  • config
  • core
  • knowledge
  • logging
  • services
  • tools
  • utils
  • web (Frontend)
  • docs (Documentation)
  • scripts
  • tests
  • Other: ...

Checklist

  • I have read and followed the contribution guidelines.
  • My code follows the project's coding standards.
  • I have run pre-commit run --all-files and fixed any issues.
  • I have added relevant tests for my changes.
  • I have updated the documentation (if necessary).
  • My changes do not introduce any new security vulnerabilities.

Additional Notes

Add any other context or screenshots about the pull request here.

- Add get_kb_content() to list documents/images
- Add /content API endpoint
- Fix folder_id parameter in upload task
- All tested and working on macOS
## Changes since last push:

### 1. Fixed folder sync state tracking (knowledge.py)
- Added 'folder_id' parameter to run_upload_processing_task
- Implemented source path tracking: Now stores original source paths
  from linked folders instead of destination paths in synced_files
- This fixes the bug where files always appeared as 'new' after sync
  because detect_folder_changes checks source paths but synced_files
  contained destination paths

### 2. Added LightRAG fallback (add_documents.py)
- When RAGAnything module is unavailable, gracefully falls back to
  LightRAG pipeline instead of raising ImportError
- New _process_with_lightrag_fallback method handles text extraction
  and indexing for PDF, DOCX, TXT, and MD files
- New _extract_text_content helper for extracting text from various
  document formats using PyMuPDF and python-docx

### 3. Improved error handling
- Added null checks for processed_files in progress messages
- Better logging for sync state updates
- Added backend models and storage for SolverSession
- Implemented API endpoints for session management (CRUD)
- Added useSolverSession hook for auto-saving
- Integrated persistence into SolverPage
- Added Session History sidebar with New Chat support
- Fixed race conditions in session switching
- Added loading overlay for better UX
- Resolved TypeScript build errors

Closes HKUDS#109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant