Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Net: Handlebars syntax example #4646
.Net: Handlebars syntax example #4646
Changes from 2 commits
ed85e5f
3c6e0bd
6b35190
944842a
a0e3655
48d1af8
145ebcd
abc0e78
b46c444
9319abe
cfbec24
148b26f
e058e29
3e7676d
b5e3b9a
4918320
74c5b26
020dea9
6b055af
6744342
f96895e
11c1c69
c0813b9
e09cc59
8ddb28f
a7b1ae7
54695dc
99dcc25
03156cc
5000dbc
be88e76
d5a3e26
2b10ca7
8862756
9574852
efe485d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 68 in dotnet/samples/KernelSyntaxExamples/Example77_HandlebarsPromptSyntax.cs
GitHub Actions / Spell Check with Typos
Check warning on line 68 in dotnet/samples/KernelSyntaxExamples/Example77_HandlebarsPromptSyntax.cs
GitHub Actions / Spell Check with Typos
Check warning on line 86 in dotnet/samples/KernelSyntaxExamples/Example77_HandlebarsPromptSyntax.cs
GitHub Actions / Spell Check with Typos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question for clarity - are you asking the model to first generate an array of products with unique names and descriptions and then iterate over that array to make the descriptions more engaging?
The model tends to work best when given a well-defined set of instruction and then a definition of what the expected output should be.
Another note: the model is usually smart enough to know how to translate function outputs between plan steps, so you don't need to explicitly define the example output like this. The HB Planner already has information about the functions, inputs, and outputs in the CreatePlan prompt, so its "magic" comes from being able to select and execute the appropriate functions without much explicit guidance. Play around with it using a simpler prompt and see what it gives you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the way your functions are set up are too complex for this example.
Either:
i.e.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In terms of showcase a HB prompt template, these are much too complex.
Example of how you can reduce complexity: