Problem
The 24/7 Aircraft-on-Ground (AOG) support team relied on more than a million engineering emails, but finding the right one meant 30+ minutes of repeated mailbox searching.
Approach
Engineers ask a question in plain English and can put a keyword in "double quotes" to make sure it appears in every result. They can switch between keyword, semantic and hybrid search. Matches come from semantic and BM25 search over a Lakebase index, reranked with Cohere Rerank, and each email is shown with an AI summary and its source details. Engineers can ask follow-up questions, LLM guardrails sit in front of the model, and new emails are added daily by a medallion pipeline on Databricks.
Architecture
Key decisions
- Moved retrieval from Databricks Vector Search to Lakebase with BM25: the built-in hybrid mode allowed no weight tuning and no keyword-only search.
- Embedded each email in a thread separately rather than the whole trail, so a search lands on the message that answers the question instead of a long thread where it's buried.
- Built attachment processing for PDFs and embedded images, then scoped production to email content to meet the client's data-handling requirements.
Outcome
Engineers ask once and get the right email, instead of running search after search in Outlook. The assistant was validated in staged UAT and released to production.
Technology stack
- Azure Front Door
- Azure Storage
- API Management
- AKS
- Azure Cache for Redis
- Azure Log Analytics
- Azure Databricks
- Databricks Model Serving
- Databricks Lakebase
- MLflow
- Azure OpenAI
- Cohere Rerank
- Azure AI Foundry
- Azure Data Factory
- Microsoft Entra ID
- FastAPI
- React
- Python
Client and project names are withheld. Architecture and outcomes are described in general terms to respect client confidentiality.