Exercise - Add grounding data

Completed

The customer support teams needs an agent that answers their questions using information from documents stored in Microsoft 365. Here, you extend your declarative agent and ground it in your documents. You'll validate how it's working against requirements to check your work.

Specification

The declarative agent:

  • answers a user's questions using the information from the referenced documents
  • in the answer, includes a reference to the relevant document
  • politely refuses answering questions not related to its function
  • admits when it doesn't have relevant information to answer a user's question

Check your work

At this point, you have a fully functional declarative agent grounded in work documents. The agent answers questions about products using the information from the referenced documents

  1. Navigate to your agent. Ask it a question about one of the products from the referenced documents. Does the agent answer using the information from the document?
  2. Does the answer include a reference to the document?
  3. Is the reference pointing to the correct document?
  4. Ask another question, this time about something that's not in the referenced documents. Does the agent admit that it doesn't have the information to answer the question?
  5. Ask a question not related to Contoso products. Does the agent politely refuse to answer it?