Skip to Content
Solution PlaysPlay 01: Play 01 β€” Enterprise RAG Q&A πŸ”

Play 01 β€” Enterprise RAG Q&A πŸ”

Production RAG with hybrid search, semantic reranking, and pre-tuned guardrails.

Build a production-grade Retrieval-Augmented Generation system. AI Search indexes your documents, GPT-4o generates grounded answers with citations, and Container Apps hosts the API.

Quick Start

# 1. Clone and navigate cd solution-plays/01-enterprise-rag # 2. Deploy infrastructure az deployment group create -g $RG -f infra/main.bicep -p infra/parameters.json # 3. Open in VS Code with Copilot code . # Use @builder to implement, @reviewer to audit, @tuner to optimize

Architecture

ServiceLayerRole
Container AppsComputeAPI hosting, auto-scaling, HTTPS ingress
Azure AI SearchAIHybrid search index, semantic reranking
Azure OpenAI (GPT-4o)AIAnswer generation with citation grounding
Content SafetyAIResponse moderation, category filtering
Blob StorageDataDocument storage, indexing source
Key VaultSecurityAPI keys, connection strings, managed identity
Managed IdentitySecurityZero-secret service-to-service auth
Application InsightsMonitoringAPM, distributed tracing, custom AI metrics
Log AnalyticsMonitoringCentralized logging, KQL, alert rules

πŸ“ Full architecture details β€” data flow, security architecture, scaling guide, WAF alignment

Pre-Tuned Defaults

  • Temperature: 0.1 Β· Top-k: 5 Β· Hybrid weights: 60/40 (vector/keyword)
  • Chunking: 512 tokens, semantic strategy, 10% overlap
  • Guardrails: Groundedness β‰₯0.8, Relevance β‰₯0.7, Content Safety enabled

Cost Estimate

ServiceDev/PoCProductionEnterprise
Azure AI Search$75 (Basic)$250 (Standard S1)$750 (Standard S2)
Azure OpenAI$50 (PAYG)$300 (PAYG)$1,200 (PTU Reserved)
Container Apps$10 (Consumption)$80 (Dedicated)$250 (Dedicated HA)
Blob Storage$2 (Hot LRS)$15 (Hot LRS)$50 (Hot GRS)
Key Vault$1 (Standard)$3 (Standard)$10 (Premium HSM)
Application Insights$0 (Free)$25 (Pay-per-GB)$100 (Pay-per-GB)
Log Analytics$0 (Free)$15 (Pay-per-GB)$50 (Commitment)
Content Safety$0 (Free)$15 (Standard)$50 (Standard)
Total$138/mo$703/mo$2,460/mo

πŸ’° Full cost breakdown β€” per-service SKUs, usage assumptions, optimization tips

DevKit (AI-Assisted Development)

PrimitiveWhat It Does
agent.mdRoot orchestrator with builder→reviewer→tuner handoffs
copilot-instructions.mdRAG domain knowledge (hybrid search, chunking, Azure SDK pitfalls)
3 agentsBuilder (implements), Reviewer (audits security + quality), Tuner (optimizes config)
3 skillsDeploy (106 lines), Evaluate (153 lines), Tune (167 lines)
4 prompts/deploy, /test, /review, /evaluate

πŸ“– Full documentation Β· 🌐 frootai.dev/solution-plays/01-enterprise-ragΒ  Β· πŸ“¦ FAI Protocol

FAI Manifest

FieldValue
Play01-enterprise-rag
Version1.0.0
KnowledgeR2-RAG-Architecture, O3-MCP-Tools-Functions, T3-Production-Patterns, F1-GenAI-Foundations
WAF Pillarssecurity, reliability, cost-optimization, performance-efficiency, responsible-ai
Groundednessβ‰₯ 95%
Safety0 violations max
Last updated on