Problem
Microsoft sellers need the right sales documents during a customer call. The old route was a filter-based search on the external Seismic content site, outside the CRM they work in. The team could not read the document bodies programmatically, so only metadata was available. They also had no labeled relevance data, so standard ranking metrics such as NDCG (normalized discounted cumulative gain) could not be computed. Answers also had to arrive within seconds.
Example from the article: a query like "What are contents available for Dynamics 365? Give a PDF format document." must return PDFs, although the format is only a metadata field.
Solution in brief
Each document's metadata fields are written out as one English text prompt, embedded once offline, and matched to the query by a bi-encoder. A cross-encoder then rescores the top 100 candidates and returns the best 5. The skill runs as an Azure Machine Learning endpoint behind the Copilot chat.
Questions this case answers
- How to build a semantic search over a document catalog when only metadata is accessible, no content and no labeled relevance data exist, and answers are needed in real time
- How to let a text-embedding retriever use numeric attributes of items by converting them into words
- How to recommend internal documents for a natural-language question when only document metadata is available and the content cannot be read programmatically?
- How to keep a retrieve-and-rerank search under a few seconds of latency for live use inside a chat assistant?
Tools and methods
- Metadata prompt — about 20 document fields turned into one text string, numeric fields bucketed into words
- Bi-encoder (DistilBERT, MS MARCO) — offline document embeddings and cosine similarity for fast candidate retrieval
- Cross-encoder (MiniLM, MS MARCO) — rescoring query and document prompt pairs together
- Azure Machine Learning endpoint and Semantic Kernel — serving and routing queries from Copilot
Google or a one-time email code. No password.