How anshlambagit/microsoft_foundry_tutorial works
This repository is an educational Azure AI Foundry tutorial, not a single application pipeline. Its examples demonstrate separate ways to call language models, use document and speech services, explore AI Search, and invoke a Foundry agent. The README documents broader capabilities such as agent tool routing and conversation state, but the sampled agent code only shows an interactive request referencing a configured agent. AI Search is documented but its notebook was not sampled, so its internal flow is not shown.
Main entry points: 1_OCR.py Document OCR · 3_TTS.py Speech synthesis · 2_STT.py Speech recognition · 1_llms.py Direct LLM call
Components 16
Models and orchestration
- Direct LLM call
CH-1_Models/1_llms.py - LangChain LLM
CH-1_Models/2_Langchain_LLM.py - Azure model endpoint
AI service examples
- Document OCR
CH-2_AI_Services/1_OCR.py - Content Understanding
- Analysis result file
- Speech recognition
CH-2_AI_Services/2_STT.py - Azure Speech
- Speech synthesis
CH-2_AI_Services/3_TTS.py - AI Search example
CH-2_AI_Services/4_AISearch.ipynb
Agent example
- Foundry agent client
CH-3_Agent/1_foundry_agent.py - Configured Foundry agent
Other components
- User
- Document URL
- Microphone
- Audio output
Connections 16
- User → Direct LLM call: runs example
README.md - Direct LLM call → Azure model endpoint: requests completion
CH-1_Models/1_llms.py - User → LangChain LLM: runs example
README.md - LangChain LLM → Azure model endpoint: invokes model
CH-1_Models/2_Langchain_LLM.py - Document URL → Document OCR: provides document URL
CH-2_AI_Services/1_OCR.py - Document OCR → Content Understanding: submits analysis
CH-2_AI_Services/1_OCR.py - Document OCR → Analysis result file: writes JSON result
CH-2_AI_Services/1_OCR.py - Microphone → Speech recognition: provides audio
CH-2_AI_Services/2_STT.py - Speech recognition → Azure Speech: starts recognition
CH-2_AI_Services/2_STT.py - User → Speech recognition: starts example
README.md - User → Speech synthesis: runs example
README.md - Speech synthesis → Azure Speech: synthesizes text
CH-2_AI_Services/3_TTS.py - Speech synthesis → Audio output: plays synthesized audio
CH-2_AI_Services/3_TTS.py - User → AI Search example: explores search
README.md - User → Foundry agent client: enters message
CH-3_Agent/1_foundry_agent.py - Foundry agent client → Configured Foundry agent: sends agent request
CH-3_Agent/1_foundry_agent.py