This plugin hooks into the RabbitHole to prevend multiple ingestions of the same document.
Using this plugin you can relax yourself and put into the RabbitHole all the files you want, the Dietician will only allow new documents (o newer versions of the same file, by updating only the modified chunks) for you.
If you like this plugin, please show appreciacion by giving a star to the repository, otherwise a kitten will die!
- Modular Settings: Settings have been moved to a separate
settings.pyfile for better code organization - Database Management: Added a new "Delete Database" option in plugin settings that allows you to completely reset the Dietician's tracking database
- Enhanced Cleanup: Added
remove_documents_by_metadata()function for programmatic removal of documents based on metadata filters - Improved Memory Handling: Updated working memory access pattern for better compatibility
- Cascade Deletion: Improved database relationships with cascade deletion for cleaner data management
- Debug Logging: Reduced log verbosity by changing database location messages to debug level
- Install the plugin BEFORE ingesting any document: Dietician tracks document ingestion only if activated
- Ingest documents
- Optionally use the plugin settings to:
- Change the SQLite database path (advanced users only)
- Reset the tracking database by enabling "Delete Database" option
The plugin now includes a "Delete Database" setting that allows you to completely reset the Dietician's tracking database. This is useful when you want to start fresh or if you encounter any database-related issues.
The plugin provides a remove_documents_by_metadata() function that allows for programmatic removal of documents based on metadata filters. This is useful for batch cleanup operations or integration with other plugins.
If you wipe the declarative memory, you can now use the plugin settings to delete the dietician database by enabling the "Delete Database" option. Alternatively, you can manually delete the dietician.db file inside the plugin directory.
dietician.py- Main plugin logic with document tracking and cleanup functionssettings.py- Plugin configuration settingssettings.json- Saved plugin settings (auto-generated)

