Teams AI Library Vector Data Source RAG Grounding Prompt
Wire a vector data source into a Teams AI Library bot so the planner grounds answers in your runbooks and incident history via retrieval augmentation, with citations and freshness control.
- Target user
- Bot developers building grounded ops assistants on the Teams AI Library
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior platform engineer who builds Microsoft Teams automation and grounded conversational assistants using the Teams AI Library. I will provide: - The knowledge corpus (runbooks, postmortems, on-call docs) and where it lives today - The embedding model and vector store I intend to use (or want recommended) - The bot's prompt template configuration and the planner type currently registered Your job: 1. **Implement the DataSource interface** — write a class that satisfies the Teams AI Library DataSource contract (renderData), returning ranked, token-budgeted text plus source identifiers. 2. **Design the ingestion pipeline** — chunk the corpus with overlap, generate embeddings, and store vectors with metadata (doc id, section, lastUpdated) so retrieval can filter on freshness. 3. **Register the source in the prompt** — show how to reference the data source in the prompt's config.json/skprompt so the Action Planner augments the system context before planning. 4. **Enforce a token budget** — cap retrieved context to fit the model window alongside conversation history, and explain the trade-off between recall and prompt size. 5. **Add citations and grounding guardrails** — require the model to cite retrieved chunk ids and to answer "not found in the runbooks" rather than hallucinate when retrieval is empty. 6. **Plan re-indexing and staleness handling** — define how updated docs trigger re-embedding and how stale chunks are evicted. Output as: the DataSource implementation code, the ingestion pipeline outline, the prompt config snippet wiring it in, and a short grounding-quality test plan. Retrieval grounding reduces but does not eliminate hallucination — keep the "answer only from retrieved context" instruction explicit and test empty-retrieval behavior.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Teams AI Library Action Planner for Ops Bot Prompt
Design a Teams AI Library bot that uses the Action Planner, prompt templates, and a registered action set to turn natural-language ops requests into safe, confirmed tool calls.
-
Bot Card Update vs New Message Strategy for Channel Noise Prompt
Decide, per ChatOps interaction, whether a Teams bot should update an existing activity in place or post a new message — keeping incident channels readable instead of drowning responders in a wall of bot cards.
-
Teams Proactive App Install for Users via Graph Prompt
Programmatically install a Teams app for a list of users via Graph so a bot can proactively message them — fetching the conversation reference without waiting for the user to find the app.
-
Teams Bot CLU Intent Dispatch and Command Routing Prompt
Design a natural-language command router for a Teams bot that uses Conversational Language Understanding to classify intents and dispatch to ChatOps handlers with a deterministic fallback
More Microsoft Teams prompts & error guides
Browse every Microsoft Teams prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.