Azure-Samples / Azure-Samples/document-intelligence-code-samples
Support for Query Fields at Line Item Level (e.g., IGST Rate, IGST Amount in Invoice Items)
- 主要語言
- C#
- 星號
- 201
- 分支
- 115
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Description
Currently, the query_fields parameter in the begin_analyze_document API allows us to specify high-level fields such as Address or InvoiceNumber.
For example:
This works well for document-level fields.
However, I would like to specify query fields for each line item (product) in an invoice. For instance, in the attached sample invoice, I need to extract IGST Rate and IGST Amount for each line item in the product table.
Problem
At the moment, query_fields seems to only work for top-level fields and does not allow targeting fields inside a repeating structure like invoice line items.
Request
-
Is there a way to define query fields at the line item (per product) level?
-
If not, can support for item-level query fields (e.g., tax percentages, amounts, discounts per line item) be added in a future release?
Example Use Case
For an invoice line item table:

I want to query and extract IGST Rate and IGST Amount along with other line item details.
貢獻指南
研究方向
從 Python begin_analyze_document 範例及其 query_fields 和 QUERY_FIELDS 參數開始。檢查 Document Intelligence API 是否支援在重複的發票明細項目中使用查詢,包括 IGST Rate 和 IGST Amount。完成的標準是記錄受支援的方法,或清楚記錄項目層級的查詢欄位需要服務未來提供支援。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- azure, python
- 領域
- api
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100