How ayaz-microsoft/chat-with-your-data-solution-accelerator works
Chat with Your Data is an Azure-hosted document-grounded chat product. Users ingest uploaded files or web pages through the admin experience; a separate Functions worker parses, chunks, embeds, and indexes content. In chat, the backend retrieves relevant passages, grounds and streams model answers with citations, and persists conversation history. The README documents the major capabilities and deployment-time provider choices; sampled source clarifies ingestion orchestration, but unsampled runtime wiring is represented only where the README explicitly describes it.
Main entry points: app.py FastAPI API · handler.py Blob processing · base.py Search providers · chat.py Grounded chat pipeline
Components 26
User experience
- Chat and admin SPA
src/frontend/src/App.tsx - Ingest controls
src/frontend/src/pages/admin/IngestData/IngestData.tsx - Speech input
src/frontend/src/hooks/useSpeechRecognition.tsx
Backend API
- FastAPI API
src/backend/app.py - Conversation service
src/backend/services/conversation.py - Grounded chat pipeline
src/backend/core/pipelines/chat.py - Admin service
src/backend/services/admin.py - Ingestion service
src/backend/services/ingestion.py - Chat history
src/backend/services/health.py - Speech endpoint
src/backend/services/health.py
Document ingestion
- Batch fan-out
src/functions/batch_start/handler.py - Blob processing
src/functions/batch_push/handler.py - Web-page ingestion
src/functions/add_url/handler.py - Search embedding skill
src/functions/search_skill/handler.py
Provider layer
- Document parsers
src/backend/core/providers/parsers/base.py - Embedding providers
src/backend/core/providers/embedders/registry.py - Search providers
src/backend/core/providers/search/base.py - Chat orchestrators
src/backend/core/providers/orchestrators/registry.py
Azure services
- Azure AI Foundry
- Content Safety
- Azure Speech
- Blob and queue storage
- Azure AI Search
- Cosmos DB history
- PostgreSQL pgvector
Other components
- User
Connections 32
- User → Chat and admin SPA: uses
README.md - Chat and admin SPA → FastAPI API: calls API
README.md - Chat and admin SPA → Ingest controls: opens admin
README.md - Ingest controls → Ingestion service: submits documents
src/frontend/src/pages/admin/IngestData/IngestData.tsx - FastAPI API → Conversation service: serves chat
README.md - FastAPI API → Admin service: serves admin
- Conversation service → Grounded chat pipeline: runs grounding
README.md - Grounded chat pipeline → Azure AI Foundry: retrieves and answers
README.md - Grounded chat pipeline → Content Safety: screens content
README.md - FastAPI API → Chat history: persists history
README.md - FastAPI API → Speech endpoint: provides speech config
README.md - Speech input → FastAPI API: requests token
src/frontend/src/hooks/useSpeechRecognition.tsx - Speech input → Azure Speech: recognizes speech
README.md - Ingestion service → Blob and queue storage: uploads and enqueues
src/backend/services/ingestion.py - Ingestion service → Web-page ingestion: delegates URL work
src/backend/services/ingestion.py - Blob and queue storage → Batch fan-out: triggers processing
README.md - Batch fan-out → Blob and queue storage: enqueues blob jobs
src/functions/batch_start/handler.py - Blob and queue storage → Blob processing: delivers queue jobs
README.md - Blob processing → Document parsers: parses blobs
src/functions/batch_push/handler.py - Blob processing → Embedding providers: embeds chunks
src/functions/batch_push/handler.py - Blob processing → Search providers: writes documents
src/functions/batch_push/handler.py - Web-page ingestion → Document parsers: parses fetched pages
src/functions/add_url/handler.py - Web-page ingestion → Embedding providers: embeds chunks
src/functions/add_url/handler.py - Web-page ingestion → Search providers: writes documents
src/functions/add_url/handler.py - Search embedding skill → Embedding providers: embeds records
src/functions/search_skill/handler.py - FastAPI API → Search providers: retrieves passages
README.md - Blob processing → Azure AI Foundry: uses AI services
README.md - Search providers → Azure AI Search: selects index
README.md - Search providers → PostgreSQL pgvector: selects index
README.md - FastAPI API → Cosmos DB history: stores history
README.md - FastAPI API → PostgreSQL pgvector: stores history
README.md - Grounded chat pipeline → Chat orchestrators: uses selected orchestration
README.md