Skip to Content
Solution PlaysPlay 26: Play 26 β€” Semantic Search Engine πŸ”Ž

Play 26 β€” Semantic Search Engine πŸ”Ž

Backend search-as-a-service with embedding pipeline, query expansion, and personalization.

A semantic search engine consumed as an API by other services. Embedding pipeline indexes documents into vector + keyword fields, hybrid search combines BM25 + vector + semantic reranking, query expansion handles synonyms and spelling, and personalization re-ranks based on user profiles.

Quick Start

cd solution-plays/26-semantic-search-engine az deployment group create -g $RG -f infra/main.bicep -p infra/parameters.json code . # Use @builder for index/embeddings, @reviewer for relevance audit, @tuner for scoring

How It Differs from Play 09 (Search Portal)

AspectPlay 09 (Portal)Play 26 (Engine)
FocusEnd-user UI with facetsBackend API for other services
UIAutocomplete, filtersAPI-only (JSON in, JSON out)
PersonalizationBasicUser profile-based re-ranking
Query expansionNoneSynonym + LLM-based
Multi-tenantNoTenant-isolated indices

Architecture

πŸ“ See architecture.md for full data flow, service roles, security architecture, and scaling tables.

Key Metrics

  • NDCG@10: β‰₯0.75 Β· Zero-result: <3% Β· Latency p95: <400ms Β· Personalization lift: β‰₯10%

DevKit (Search Engine-Focused)

PrimitiveWhat It Does
3 agentsBuilder (index/embedding/scoring), Reviewer (relevance/access/freshness), Tuner (scoring/expansion/personalization/cost)
3 skillsDeploy (107 lines), Evaluate (105 lines), Tune (103 lines)
4 prompts/deploy (index + pipeline), /test (query quality), /review (relevance), /evaluate (NDCG/MRR)

Cost

πŸ’° See cost.json for full pricing breakdown with SKUs, notes, and optimization tips.

ServicePurposeDevProdEnterprise
Azure AI SearchHybrid index (BM25 + vector + semantic ranker)$75$250$750
Azure OpenAIEmbedding generation + query understanding$30$150$600
Blob StorageSource documents (PDFs, Office, HTML)$2$20$60
Container AppsSearch API gateway, query processing$10$80$250
Azure FunctionsDocument processing pipeline, index updates$0$15$75
Key VaultAI Search admin keys, OpenAI API keys$1$3$10
App InsightsSearch latency, relevance, query patterns$0$25$100
Log AnalyticsIndexer runs, pipeline errors$0$15$50
Total$118$558$1,895

πŸ“– Full docs Β· 🌐 frootai.dev/solution-plays/26-semantic-search-engineΒ 

FAI Manifest

FieldValue
Play26-semantic-search-engine
Version1.0.0
KnowledgeR2-RAG-Architecture, F1-GenAI-Foundations, T3-Production-Patterns
WAF Pillarssecurity, reliability, performance-efficiency, cost-optimization
Groundednessβ‰₯ 85%
Safety0 violations max
Last updated on