Azure AI Document Intelligence client library for Python - a cloud service that uses machine learning to analyze text and structured data from documents
76
Utility for launching and managing batch document analysis jobs against Azure Blob Storage so multiple files can be processed and results collected in bulk.
@generates
from typing import Dict, Iterable, Optional, TypedDict, Tuple
class BatchRunSummary(TypedDict):
operation_id: str
status: str
percent_completed: Optional[int]
def start_batch_run(
model_id: str,
source_container_url: str,
*,
file_list_path: Optional[str] = None,
result_container_url: str,
result_prefix: Optional[str] = None,
overwrite_existing: bool = False
) -> Tuple[str, str]:
"""
Starts a batch analysis job and returns (operation_id, continuation_token).
Raises ValueError when required URLs are missing.
"""
def resume_batch_status(continuation_token: str) -> Dict[str, int]:
"""
Resumes a batch analysis using continuation token and returns succeeded_count,
failed_count, skipped_count, and current status.
"""
def list_batch_runs(
model_id: str,
*,
skip: int = 0,
top: int = 20
) -> Iterable[BatchRunSummary]:
"""
Iterates over recent batch runs for a model yielding summaries.
"""
def delete_batch_run(model_id: str, result_id: str) -> None:
"""
Removes the stored batch result for the given identifiers.
"""Provides batch document analysis and run management against Azure resources.
Install with Tessl CLI
npx tessl i tessl/pypi-azure-ai-documentintelligencedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10