Closed LeonardoSanBenitez closed 8 months ago
Hi @LeonardoSanBenitez, thanks for your question. Currently in Python, there isn't a native chat mode planner, as is available in dotnet. We're working on getting the SK Python SDK to v1 (dotnet is at 1.3 now). There will be more planner work in the near future, as we working on aligning things with dotnet, so please stay tuned.
Thank you. But even when using text-completion models, it should still be possible to modify/expand the base prompt to include a sentence like "answer with jokes", correct? Do you have an example on how to configure that?
@LeonardoSanBenitez you can add system/assistant messages via a ChatPromptTemplate
which you can find an example of here.
Closing this issue. Please re-open if you need help with this specific issue, otherwise please create a new issue for the related item.
but when using StepwisePlanner
we can not set the messages individually, and they have to be included in the prompt template, for example here: https://github.com/microsoft/semantic-kernel/blob/eed51932f2fb5879de47e76b752f9051cb868331/dotnet/src/Planners/Planners.Core/Stepwise/Plugin/StepwiseStep/skprompt.txt
Am I understanding this correctly?
If so, could you provide me an example on how to set the system message (or equivalente instruction prompt) when using StepwisePlanner
?
I would like to set a system message, for example "you are a funny AI assistant that answer with jokes". I found some issues mentioning system messages, like #2722 and #4648, but I have not understood how to set the message.
For example, I would like to include a system message in the following code:
Considering the env variables AZURE_OPENAI_DEPLOYMENT_NAME_CHAT, AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY properly set.
Semantic kernel version: 0.5.0.dev0