Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@xiaoyi-cheng
Copy link
Contributor

@xiaoyi-cheng xiaoyi-cheng commented May 7, 2024

Issue #, if available:
Existing PromptComposer only accept $model_input to be replaced in template. Need to add flexibility to later accept $context, $statement, $target_output, etc.

Description of changes:
Add placeholder_data_dict to PromptComposer.compose(). This is a non-breaking change.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

franluca
franluca previously approved these changes May 8, 2024
@xiaoyi-cheng xiaoyi-cheng changed the title feat: allow keyword arguments for prompt composer feat: allow placeholder dict for prompt composer May 13, 2024
@xiaoyi-cheng xiaoyi-cheng merged commit 76e45e4 into aws:main May 16, 2024
@xiaoyi-cheng xiaoyi-cheng deleted the promptcomposer branch May 16, 2024 15:12
@xiaoyi-cheng xiaoyi-cheng restored the promptcomposer branch May 16, 2024 15:12
@xiaoyi-cheng xiaoyi-cheng deleted the promptcomposer branch May 16, 2024 15:12
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