Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.34k stars 1.98k forks source link

Swedish receipt interpreted with DKK as currency #42231

Open JonatanRoo opened 3 weeks ago

JonatanRoo commented 3 weeks ago

Describe the bug When interpreting receipts that are clearly Swedish we are getting currency DKK instead of SEK with high confidence (95%+) on both 3.1 and 4.0 Document Intelligence Receipts. Likely cause is that the receipts contain the currency code "KR" which could be both DKK or SEK. This is happening with a lot of Swedish taxi-receipts which are very common.

Exception or Stack Trace Not available.

To Reproduce Upload the attached receipt in Azure AI Studio

Code Snippet No code.

Expected behavior My expectation is that a Swedish receipt would be interpreted with SEK as currency. Or at least low confidence DKK so it can be filtered out easily.

Screenshots Image Image

Setup (please complete the following information): We are making calls though the API. But the problem is reproducible through the Azure AI Studio

Additional context Add any other context about the problem here.

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[x] Bug Description Added [x] Repro Steps Added [x] Setup information Added

joshfree commented 1 day ago

@samvaity can you please assist @JonatanRoo

samvaity commented 1 day ago

@JonatanRoo Thanks for pointing this out. The fact that its is reproducible through the Azure AI Studio, @bojunehsu should be able to help. You are right in suggesting that the interpretation of the Swedish receipt should have SEK as currency. Or at least low confidence DKK.

@bojunehsu can you take a look at the prebuilts-receipts model on the service end to see if this can be fixed.

JonatanRoo commented 1 day ago

Thank you for taking a look at this! We got the suggestion to switch to a custom model but this would require us to reconfigure and retest our implementation so if it's fixable without us having to swap the model that would be great.

samvaity commented 20 hours ago

@bojunehsu Would you suggest swapping the models to be the best solution or it would be better to fix the prebuilt model itself?