mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 02:57:09 +01:00
- Created serializers for AI suggestions (AISuggestionsSerializer, ApplySuggestionSerializer, etc.)
- Added AISuggestionFeedback model for tracking applied/rejected suggestions
- Implemented 4 new API endpoints:
- GET /api/documents/{id}/ai-suggestions/ - Get AI suggestions for a document
- POST /api/documents/{id}/apply-suggestion/ - Apply a suggestion and record feedback
- POST /api/documents/{id}/reject-suggestion/ - Reject a suggestion and record feedback
- GET /api/documents/ai-suggestion-stats/ - Get accuracy statistics
- Created database migration for AISuggestionFeedback model
- Added comprehensive test suite (28 test cases) covering all endpoints
- Supports tracking for tags, correspondents, document types, storage paths, titles
- Calculates accuracy rates and confidence scores for AI improvement
Co-authored-by: dawnsystem <42047891+dawnsystem@users.noreply.github.com>
|
||
|---|---|---|
| .. | ||
| documents | ||
| locale | ||
| paperless | ||
| paperless_mail | ||
| paperless_tesseract | ||
| paperless_text | ||
| paperless_tika | ||
| manage.py | ||