Skip to content
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

Make parameter injection work with Azure Copilot response #244

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

daxian-dbw
Copy link
Member

PR Summary

Make parameter injection work with Azure Copilot response

  1. All values are ketp locally, saved in a dictionary with the placeholder as the key.
  2. No pseudo values used in this solution, so no pseudo values sent to Az Copilot.
  3. We use instruction prompt to make AzCopilot generate responses with fixed format regarding placeholders,
    so that it's more reliable to parse.
  4. When receiving a response, we replace all known placeholders before showing to user.

- assume placeholders are in '<xxx>' form
- the placeholder section from the original response is not handled,
  so placeholder info stays even after we replace locally.
- the way to send pesudo values to AzCopilot doesn't work well, may
  need to use a better prompt
1. All values are ketp locally, saved in a dictionary with the placeholder as the key.
2. No pseudo values used in this solution, so no pseudo values sent to Az Copilot.
3. We use instruction prompt to make AzCopilot generate responses with fixed format regarding placeholders,
   so that it's more reliable to parse.
4. When receiving a response, we replace all known placeholders before showing to user.
@daxian-dbw daxian-dbw merged commit c8c06ee into PowerShell:main Oct 15, 2024
4 checks passed
@daxian-dbw daxian-dbw deleted the paramInj-rplocal-phkey branch October 15, 2024 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant