Files
wehub-resource-sync db620d33df
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
dotnet-build-and-test / dotnet-test-functions (push) Has been cancelled
dotnet-build-and-test / paths-filter (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Debug, windows-latest, net9.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, ubuntu-latest, net8.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-build (Release, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, ubuntu-latest, net10.0) (push) Has been cancelled
dotnet-build-and-test / dotnet-test (Release, integration, true, windows-latest, net472) (push) Has been cancelled
dotnet-build-and-test / dotnet-foundry-hosted-it (push) Has been cancelled
dotnet-build-and-test / dotnet-build-and-test-check (push) Has been cancelled
dotnet-build-and-test / Integration Test Report (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:39:25 +08:00

2.3 KiB

Azure Content Understanding Samples

These samples demonstrate how to use the agent-framework-azure-contentunderstanding package to add document, image, audio, and video understanding to your agents.

Prerequisites

  1. Azure CLI logged in: az login
  2. Environment variables set (or .env file in the python/ directory):
    FOUNDRY_PROJECT_ENDPOINT=https://your-project.services.ai.azure.com
    FOUNDRY_MODEL=gpt-4.1
    AZURE_CONTENTUNDERSTANDING_ENDPOINT=https://your-cu-resource.cognitiveservices.azure.com/
    

Samples

01-get-started — Script samples (easy → advanced)

# Sample Description Run
01 Document Q&A Upload a PDF, ask questions with CU-powered extraction uv run samples/01-get-started/01_document_qa.py
02 Multi-Turn Session AgentSession persistence across turns uv run samples/01-get-started/02_multi_turn_session.py
03 Multi-Modal Chat PDF + audio + video parallel analysis uv run samples/01-get-started/03_multimodal_chat.py
04 Invoice Processing Structured field extraction with prebuilt-invoice uv run samples/01-get-started/04_invoice_processing.py
05 Large Doc + file_search CU extraction + OpenAI vector store RAG uv run samples/01-get-started/05_large_doc_file_search.py

02-devui — Interactive web UI samples

# Sample Description Run
01 Multi-Modal Agent Web UI for file upload + CU-powered chat devui samples/02-devui/01-multimodal_agent
02a file_search (Azure OpenAI backend) DevUI with CU + Azure OpenAI vector store devui samples/02-devui/02-file_search_agent/azure_openai_backend
02b file_search (Foundry backend) DevUI with CU + Foundry vector store devui samples/02-devui/02-file_search_agent/foundry_backend

Install (preview)

pip install --pre agent-framework-azure-contentunderstanding