New Feature Alert: Integrate use of Memory in Planner Skill #170
Closed
lemillermicrosoft
started this conversation in
General
Replies: 1 comment
-
This is great. Is is possible to have the planner use chat gpt 3.5 ( since it has much lower cost) instead of davinci-003? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
We're thrilled to announce a new feature in the Semantic Kernel's planner skill that will empower developers to create even more powerful applications. With the latest update, developers can now use embeddings exposed in the kernel via
SemanticTextMemory
to determine related skills, significantly enhancing the functionality and usability of the planner skill.Improvements
These features help the AI "Goal Seek" better for you.
Token Limits
In this example using GPT-3 our previous Planner fails to produce a plan when using all of the sample skills because the token limit is hit very quickly.
Using semantic memories we're able to give the Planner improved knowledge helping it provide a complete and improved plan such as:
Semantic Results
With GPT4, token limit is less of an issue, but the impact of a large manual can still be seen in this example using the previous Planner. Note that the LLM is unable to connect the output of the Joke function to the DOSScript function properly.
Using the new Planner capabilities to lower the size of the manual based on the goal, you can see the plan produced is very similar, but now correctly passes input to DOSScript function:
How
To take advantage of this powerful new feature, developers simply need to update their Semantic Kernel package to the latest version 0.8.56.1-preview, configure their kernel instance with an embeddings backend and an IMemoryStore implementation (such as the built-in VolatileMemoryStore), and configure the new parameters and options as needed when calling the CreatePlan PlannerSkill function.
This level of customization allows developers to fine-tune their applications to meet their specific needs and objectives, while also providing users with the most relevant functions to execute via natural language queries.
Here are some code snippets to illustrate how to take advantage of the new features:
Build your kernel with Embeddings backend and an associated MemoryStore.
Import skills as before
Create your plan using relevancy or other options:
Feedback
We think these capabilities will improve your results as you leverage the planner to help you accomplish tasks in your applications and would love to hear your feedback.
Thanks,
Lee
Beta Was this translation helpful? Give feedback.
All reactions