Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug? Extracted JSON sting contain "correspondent", but later "New correspondent" is "undefined" #89

Open
gima84 opened this issue Jan 10, 2025 · 1 comment

Comments

@gima84
Copy link

gima84 commented Jan 10, 2025

Hi, great work !
Since this week I am playing around to establish a workflow. Work quite well and I have tuned my prompt to my needs.

Only issue I have (from time to time) is: The correspondent is filled, but not updated in paperless.

Starting scheduled scan at 2025-01-10T13:22:00.466Z Fetched page 1, got 4 tags. Total so far: 4 Refreshing tag cache... Tag cache refreshed. Found 4 tags. Found tag "ai" in cache with ID 4 Filtering documents for tag IDs: [ 4 ] Fetched page 1, got 1 documents. Total so far: 1 Finished fetching. Found 1 documents. Processing new document: julia20250110_141914 Extracted JSON String: { "title": "Beitragsrechnung Dezember 2024", "correspondent": "AXA Versicherung AG", "tags": ["aiproc"], "document_date": "2024-12-01", "language": "de" } Refreshing tag cache... Tag cache refreshed. Found 4 tags. No tags provided to processTags Current tags for document 1: [ 4 ] Adding new tags: [] Current correspondent: null New correspondent: undefined Combined tags: [ 4 ] Updated document 1 with: { tags: [ 4 ], title: 'julia20250110_141914', created: '2024-11-30T23:00:00.000Z' } Document julia20250110_141914 added to processed_documents [INFO] Task completed

@skius
Copy link

skius commented Jan 10, 2025

Do you have multiple correspondents with the substring "AXA Versicherung AG"? If so, #88 should fix that. Until then, you can delete all but one correspondent for AXA as a workaround (this is destructive and will need a bit of manual work!).

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

No branches or pull requests

2 participants