You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to express Few-shot prompting in prompty file.
I think it can be achieved if I could write like the following Prompty format, but it seems that the 'assistant' role is not supported in Prompty.
Are there any way to provide few-shot in Prompty file or any schedule that implement assistant role in Prompty?
---
metadata omitted
sample:
question: What is Prompty?
---
system:
You are an AI assistant.
user:
[Few-shot user question]
assistant:
[Few-shot AI answer]
user:
{{question}}
The text was updated successfully, but these errors were encountered:
@injeniero
Thank you for your great information.
As you said, I assumed it was not supported because the assistant role was not highlighted in VS Code.
But it was indeed accomplished.
I hope this fact reflect to VS code extension (Highlight feature) and sample code in document of Prompty :)
system:
You are an AI assistant supporting a user named "{{userName}}".
user:
Hello
assistant:
Hi
user:
{{question}}
[
{'role': 'system', 'content': 'You are an AI assistant supporting a user named "John".'},
{'role': 'user', 'content': 'Hello'},
{'role': 'assistant', 'content': 'Hi'},
{'role': 'user', 'content': "What's up?"}
]
VS code view (only assistant role has not highlighted)
I want to express Few-shot prompting in prompty file.
I think it can be achieved if I could write like the following Prompty format, but it seems that the 'assistant' role is not supported in Prompty.
Are there any way to provide few-shot in Prompty file or any schedule that implement assistant role in Prompty?
The text was updated successfully, but these errors were encountered: