azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Invoice prebuilt models of Document Intelligence does not detect all line items

Open galvangoh opened this issue 2 years ago • 9 comments

  • Package Name: azure-ai-documentintelligence
  • Package Version: 1.0.0b2
  • Operating System: Windows
  • Python Version: 3.10.9

Describe the bug I have a 2 page invoice document (1st page table 18 rows of line items, 2nd page table 1 row of line item) of total 19 line items. I am using both the studio and sdk for testing purposes.

The prebuilt model does not really extract all line items out neatly. For context, the document is searchable so there should be no issue in detecting each line.

Questions:

  1. Why the invoice prebuilt model cannot detect each line item?
  2. Any document preprocessing needed from user side to enhance model performance?
  3. How often are the prebuilt models retrained?

Expected behavior All line items in table detected.

Screenshots This is a screenshot from studio. There are 2 rows in the document that are being detected as a single entity. image

Original document (texts are highlighted to show that they are searchable) image

galvangoh avatar May 31 '24 08:05 galvangoh

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ctstone @vkurpad.

github-actions[bot] avatar May 31 '24 08:05 github-actions[bot]

Hi @galvangoh , thanks for your feedback, we'll investigate ASAP!

@bojunehsu This issue is from prebuilt-invoice model, can you help to answer the questions?

YalinLi0312 avatar Jun 11 '24 18:06 YalinLi0312

@galvangoh Can you please share the original input file with us ([email protected]) to assist with debugging? We regularly update the models a few times a year to improve quality and reflect feedback such as this. Thanks.

bojunehsu avatar Jun 11 '24 19:06 bojunehsu

@bojunehsu I have shared the document with you via the email address you provided.

galvangoh avatar Jun 12 '24 01:06 galvangoh

Hey @bojunehsu are there any updates with the debugging?

galvangoh avatar Jun 19 '24 03:06 galvangoh

Hi @galvangoh ,

I hope all is well with you. I don't know if you saw our email response. This issue is caused by table detection dropping the 11 from the table.

image

We are looking at potential improvements and we will circle back when we have an update.

Thanks

TFR258 avatar Jun 21 '24 00:06 TFR258

Hi @TFR258 thank you for your reply.

galvangoh avatar Jun 21 '24 01:06 galvangoh

Hi @galvangoh. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

github-actions[bot] avatar Jun 27 '24 15:06 github-actions[bot]

Hi @galvangoh, since you haven’t asked that we /unresolve the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve to reopen the issue.

github-actions[bot] avatar Jul 04 '24 16:07 github-actions[bot]