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

FEAT generalize XPIA orchestrator #163

Merged
merged 15 commits into from
Apr 26, 2024

Conversation

romanlutz
Copy link
Contributor

Description

This change generalizes the existing XPIATestOrchestrator into a base class XPIAOrchestrator that expects a callback function for the processing portion. There are two concrete implementations in this PR:

  • XPIATestOrchestrator simulates the processing target execution and is useful for benchmarking.
  • XPIAManualProcessingOrchestrator waits for operator input, so the operator can manually trigger processing and paste the output afterwards.

Another options would be to use the base XPIAOrchestrator class and provide a custom callback.

Scoring is now optional as well since a scorer may or may not be available. The process method was renamed to execute since "processing" is the term used for the LLM that is under attack.

Tests and Documentation

Tests were expanded to cover the newly created functionality. The example notebook will remain as is for now.

@romanlutz romanlutz merged commit 719b2a0 into Azure:main Apr 26, 2024
5 checks passed
@romanlutz romanlutz deleted the romanlutz/generalize_xpia branch April 29, 2024 19:31
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.

None yet

2 participants