forked from microsoft/semantic-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CopilotChat: Migrate to ActionPlanner (microsoft#765)
### Motivation and Context The SequentialPlanner needs GPT-4 to operate with relative consistency and correctness. Using ActionPlanner simplifies the planning feature set but also allows us to use gpt-3.5-turbo with single step plans. ### Description - Updated CopilotChat planner feature flag to enabled=true - Updated CopilotChatPlanner to use ActionPlanner (single step planner) - Added an AIService configuration for CopilotChat's planner to disaggregate the completion model with the planner model. - CopilotChat won't invoke plans with no steps. - Removed core and semantic skills from CopilotChat planner manuals - ActionPlanner: Added support for non-string parameters - ActionPlanner: Added JSON property sanitation to 'rationale' values (replace double quotes with single and remove newlines) - ActionPlanner: fixed JSON bug when no relevant function is found (extra close curly brace)
- Loading branch information
1 parent
ebf7556
commit 80a43ef
Showing
10 changed files
with
243 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
samples/apps/copilot-chat-app/webapi/Skills/OpenApiSkills/KlarnaSkill/ai-plugin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"schema_version": "v1", | ||
"name_for_model": "KlarnaProducts", | ||
"name_for_human": "Klarna Shopping", | ||
"description_for_human": "Search and compare prices from thousands of online shops.", | ||
"description_for_model": "Assistant uses the Klarna plugin to get relevant product suggestions for any shopping or product discovery purpose. Assistant will reply with the following 3 paragraphs 1) Search Results 2) Product Comparison of the Search Results 3) Followup Questions. The first paragraph contains a list of the products with their attributes listed clearly and concisely as bullet points under the product, together with a link to the product and an explanation. Links will always be returned and should be shown to the user. The second paragraph compares the results returned in a summary sentence starting with \"In summary\". Assistant comparisons consider only the most important features of the products that will help them fit the users request, and each product mention is brief, short and concise. In the third paragraph assistant always asks helpful follow-up questions and end with a question mark. When assistant is asking a follow-up question, it uses it's product expertise to provide information pertaining to the subject of the user's request that may guide them in their search for the right product.", | ||
"api": { | ||
"type": "openapi", | ||
"url": "https://www.klarna.com/us/shopping/public/openai/v0/api-docs/", | ||
"has_user_authentication": false | ||
}, | ||
"auth": { | ||
"type": "none" | ||
}, | ||
"logo_url": "https://www.klarna.com/assets/sites/5/2020/04/27143923/klarna-K-150x150.jpg", | ||
"contact_email": "openai-products@klarna.com", | ||
"legal_info_url": "https://www.klarna.com/us/legal/" | ||
} |
Oops, something went wrong.