Skip to content

Align SeedPrompt with PromptRequestPiece #1053

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

Merged

Conversation

hannahwestra25
Copy link
Contributor

@hannahwestra25 hannahwestra25 commented Aug 6, 2025

Description

Problem: Use of sequence in SeedPrompt was unclear and SeedPrompts did not support roles. Sequence in SeedPrompt and PromptRequestPiece should mean the same thing.

PromptRequestResponse: This is a single request to a target. It can contain multiple prompt request pieces. Within a PromptRequestResponse, PromptRequestPieces must share:

  • Conversation id
  • Roles
  • Sequences

SeedPromptGroup: A group of prompts that need to be sent together. It can contain multiple SeedPrompts. Each SeedPromptGroup will share:

  • Prompt_group_id (corresponds to prompt_group_alias)

Sequence: The turn in a conversation; will be the same with prompts that are sent together (i.e. an image and text)

SeedPrompts can be associated together using the sequence number. If two (or more) SeedPrompts share both a prompt_group_alias (ie a prompt_group_id meaning they are apart of the same SeedPromptGroup) AND the same sequence number, the SeedPrompts are associated and are sent in the order the sequence specifies.

PromptRequestPieces will be associated together using the sequence number. PromptRequestPieces with the same sequence can be associated via a PromptRequestResponse (which requires that all PromptRequestPieces share the same sequence). The sequence then specifies which order PromptRequestResponse will be sent in the conversation.

Both SeedPrompts with the same sequence which are in the same SeedPromptGroup and PromptRequestPieces with the same sequence which are in the same conversation must share a role.

This PR adds the role to SeedPrompt and enforces that SeedPrompts in a SeedPromptGroup that have the same sequence also have the same role. Additionally, move SeedPromptGroup and SeedPromptDataset to their own files.

image image image image

Tests and Documentation

Added a few tests and updated the prompt datasets we have

@hannahwestra25 hannahwestra25 changed the title [DRAFT] Align SeedPrompt with PromptRequestPiece Align SeedPrompt with PromptRequestPiece Aug 8, 2025
@hannahwestra25 hannahwestra25 merged commit b4638c3 into Azure:main Aug 12, 2025
20 checks passed
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.

3 participants