From 34facea27fdec6e748c3f748c945cc5d98a96076 Mon Sep 17 00:00:00 2001 From: Andrei Alistar Date: Fri, 24 May 2024 19:38:01 +0300 Subject: [PATCH] updated prompts and readme --- ...wledgeManagementAgentWithSemanticKernel.cs | 6 ++--- ...2_KnowledgeManagementAgentWithLangChain.cs | 6 ++--- tests/dotnet/Core.Examples/README.md | 22 +++++++++++++++++-- 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/tests/dotnet/Core.Examples/Example0011_KnowledgeManagementAgentWithSemanticKernel.cs b/tests/dotnet/Core.Examples/Example0011_KnowledgeManagementAgentWithSemanticKernel.cs index 429866a5a2..80c446b5b5 100644 --- a/tests/dotnet/Core.Examples/Example0011_KnowledgeManagementAgentWithSemanticKernel.cs +++ b/tests/dotnet/Core.Examples/Example0011_KnowledgeManagementAgentWithSemanticKernel.cs @@ -34,9 +34,9 @@ private async Task RunExampleAsync() var userPrompts = new List { "Who are you?", - "What are some interesting facts about the San Diego Zoo?", - "Which animal in the San Diego Zoo is the oldest?", - "How does San Diego Zoo treat illness among it's inhabitants?" + "Tell me one interesting facts about the San Diego Zoo?", + "How many animals does the San Diego Zoo host?", + "What does the San Diego Zoo do to treat illness among it's inhabitants?" }; WriteLine($"Send questions to the {agentName} agent."); diff --git a/tests/dotnet/Core.Examples/Example0012_KnowledgeManagementAgentWithLangChain.cs b/tests/dotnet/Core.Examples/Example0012_KnowledgeManagementAgentWithLangChain.cs index ad0b269c77..f33e216ac4 100644 --- a/tests/dotnet/Core.Examples/Example0012_KnowledgeManagementAgentWithLangChain.cs +++ b/tests/dotnet/Core.Examples/Example0012_KnowledgeManagementAgentWithLangChain.cs @@ -34,9 +34,9 @@ private async Task RunExampleAsync() var userPrompts = new List { "Who are you?", - "What are some interesting facts about the San Diego Zoo?", - "Which animal in the San Diego Zoo is the oldest?", - "How does San Diego Zoo treat illness among it's inhabitants?" + "Tell me one interesting facts about the San Diego Zoo?", + "How many animals does the San Diego Zoo host?", + "What does the San Diego Zoo do to treat illness among it's inhabitants?" }; WriteLine($"Send questions to the {agentName} agent."); diff --git a/tests/dotnet/Core.Examples/README.md b/tests/dotnet/Core.Examples/README.md index 82057f22a5..9fa229adf2 100644 --- a/tests/dotnet/Core.Examples/README.md +++ b/tests/dotnet/Core.Examples/README.md @@ -398,8 +398,17 @@ Run the example by running a test on the `Example0011_KnowledgeManagementAgentWi You will see an output similar to the following after the test is completed: ```text -============ Knowledge Management agent with Semantic Kernel on SDZWA ============ -Send questions to the KMAgentWithSemanticKernelSDZWA agent. +============ Knowledge Management agent with Lang Chain on SDZWA ============ +Send questions to the KMAgentWithLangChainSDZWA agent. +Agent conversation history: +- User: Who are you? +- Assistant: I am Sandy, the San Diego Zoo assistant. +- User: Tell me one interesting facts about the San Diego Zoo? +- Assistant: One interesting fact about the San Diego Zoo is that between the botanical gardens at the San Diego Zoo and the Safari Park, they care for 2 million plants. +- User: How many animals does the San Diego Zoo host? +- Assistant: The journal does not provide information about the number of animals hosted by the San Diego Zoo. +- User: What does the San Diego Zoo do to treat illness among it's inhabitants? +- Assistant: The journal mentions that the San Diego Zoo provides efficient and effective health care for its animals. The care and health decisions are based on the best available scientific data. ``` ### Example 12: Knowledge Management agent with Lang Chain on the SDZWA journal @@ -419,6 +428,15 @@ You will see an output similar to the following after the test is completed: ```text ============ Knowledge Management agent with Lang Chain on SDZWA ============ Send questions to the KMAgentWithLangChainSDZWA agent. +Agent conversation history: +- User: Who are you? +- Assistant: I am Sandy, the San Diego Zoo assistant. +- User: Tell me one interesting facts about the San Diego Zoo? +- Assistant: One interesting fact about the San Diego Zoo is that between the botanical gardens at the San Diego Zoo and the Safari Park, they care for 2 million plants. +- User: How many animals does the San Diego Zoo host? +- Assistant: The journal does not provide information about the number of animals hosted by the San Diego Zoo. +- User: What does the San Diego Zoo do to treat illness among it's inhabitants? +- Assistant: The journal mentions that the San Diego Zoo provides efficient and effective health care for its animals. The care and health decisions are based on the best available scientific data. ``` ### Example 16: Completion quality measurements with Azure AI Studio