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

Tools: Add ailly prompts.yaml for --template-view. #6402

Merged
merged 4 commits into from
May 3, 2024

Conversation

cpyle0819
Copy link
Contributor

@cpyle0819 cpyle0819 commented May 2, 2024

This pull request adds a snippet library to .tools for --template-view with ailly.

Schema:

system:
  background: Dict[str, str]
  role: Dict[str, str]
  tone: Dict[str, str]
user:
  example: Dict[str, str]
  instruction: Dict[str, str]
  output: Dict[str, str]
  rewrite: Dict[str, str]
  

Example usage:
ailly --context none --prompt "{{system.background.sdk_code_example_tributary}} What is a tributary?" --template-view .tools/ailly/prompts.yaml

Output:

In the context you provided, a "Tributary" refers to a code example that is not directly written or developed by the TCX Code Examples team, but is still included in the Example Code Library and related documentation. It is essentially a contributed or external code example that is integrated into the library through metadata and tooling processes.

The term "Tributary" seems to be a metaphorical reference, likening these external code examples to tributaries that flow into the main river or stream of the Example Code Library. Just as tributaries contribute water and flow to a larger river system, these "Tributary" code examples contribute content and enrich the overall Example Code Library, even though they originate from external sources.

The use of the term "Tributary" distinguishes these code examples from those directly authored by the TCX Code Examples team, while still acknowledging their inclusion and integration into the broader library and documentation ecosystem.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@cpyle0819 cpyle0819 self-assigned this May 2, 2024
@github-actions github-actions bot added the Tools This issue relates to a custom tooling to streamline development tasks label May 2, 2024
@DavidSouther
Copy link
Contributor

DavidSouther commented May 2, 2024

Edit: NVM you're adding additional constraints.

@cpyle0819
Copy link
Contributor Author

Think I should add the csv parser to the PR? @DavidSouther

@DavidSouther
Copy link
Contributor

DavidSouther commented May 2, 2024

Think I should add the csv parser to the PR? @DavidSouther

I don't think that's necessary (or, honestly, generally useful)

@cpyle0819 cpyle0819 added the Task A general update to the code base for language clarification, missing actions, tests, etc. label May 2, 2024
@cpyle0819 cpyle0819 added the On Call Review needed This work needs an on-call review label May 2, 2024
@beqqrry-aws beqqrry-aws added On Call Review complete On call review complete and removed On Call Review needed This work needs an on-call review labels May 3, 2024
@beqqrry-aws beqqrry-aws merged commit 30567d6 into awsdocs:main May 3, 2024
13 checks passed
@cpyle0819 cpyle0819 deleted the corepyle/ailly-prompts branch May 17, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On Call Review complete On call review complete Task A general update to the code base for language clarification, missing actions, tests, etc. Tools This issue relates to a custom tooling to streamline development tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants