Skip to content

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