Commit Graph

7 Commits

Author SHA1 Message Date
bsiggel
9b2fb5ae4a feat: Implement AI Knowledge Sync Utilities and RAGFlow Service
- Added `aiknowledge_sync_utils.py` for provider-agnostic synchronization logic for CAIKnowledge entities, supporting both xAI and RAGFlow.
- Introduced lifecycle management for CAIKnowledge entities including states: new, active, paused, and deactivated.
- Implemented change detection using Blake3 hash for efficient document synchronization.
- Created `ragflow_service.py` to handle dataset and document management with RAGFlow API.
- Added daily cron job in `aiknowledge_daily_cron_step.py` to synchronize active CAIKnowledge entities with unclean or failed statuses.
- Developed `aiknowledge_sync_event_step.py` to process synchronization events from webhooks and cron jobs.
2026-03-26 21:38:42 +00:00
bsiggel
6682b0bd1f feat(sync): Remove redundant file renaming logic after upload when hash matches 2026-03-26 14:32:04 +00:00
bsiggel
1d0bd9d568 feat(upload): Update document metadata handling to exclude empty fields during upload 2026-03-26 14:26:06 +00:00
bsiggel
c9bdd021e4 feat(sync): Implement orphan cleanup for xAI documents without EspoCRM equivalents 2026-03-26 14:20:33 +00:00
bsiggel
459fa41033 feat(sync): Refactor Akte sync status handling and remove deprecated event step 2026-03-26 13:06:32 +00:00
bsiggel
52cee5bd16 feat(upload): Enhance document metadata handling with additional fields for better context 2026-03-26 12:51:04 +00:00
bsiggel
b4d35b1790 Refactor Akte and Document Sync Logic
- Removed the old VMH Document xAI Sync Handler implementation.
- Introduced new xAI Upload Utilities for shared upload logic across sync flows.
- Created a unified Akte sync structure with cron polling and event handling.
- Implemented Akte Sync Cron Poller to manage pending Aktennummern with a debounce mechanism.
- Developed Akte Sync Event Handler for synchronized processing across Advoware and xAI.
- Enhanced logging and error handling throughout the new sync processes.
- Ensured compatibility with existing Redis and EspoCRM services.
2026-03-26 01:23:16 +00:00