PyRIT icon indicating copy to clipboard operation
PyRIT copied to clipboard

DOC How to use Response Converters

Open nina-msft opened this issue 1 year ago • 0 comments

Describe the issue linked to the documentation

We need an example of how to use PromptResponseConverterConfiguration in practice.

Suggest a potential alternative/fix

This can be configured as part of a NormalizerRequest - so a good example might be to show how a response from a target could be converted to a specific format. i.e. If converting a prompt from English to a specific language, apply a response converter to convert the response back to English before returning it.

The GPTV Demo already uses NormalizerRequests for multi-modal scenarios, as an example of how this might be invoked. See unit test for an example of use.

This should probably be a new DOC page within doc/code/converters, and will need to use a simple orchestrator as an example because it is implemented within the Normalizer.

nina-msft avatar Oct 02 '24 18:10 nina-msft