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

(PPLTool) update claude and openai prompts #184

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

joshuali925
Copy link
Member

Description

The existing prompt for claude doesn't work, since it's using %s as place holders. Additionally there were too many escapes.

This PR fixes it and adds OpenAI prompt, which is the same as claude prompt except PPL in the examples are surrounded by <ppl> </ppl> tags. This prompt might get updated to tune performance later.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c2a1fed) 81.76% compared to head (1134c02) 81.78%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #184      +/-   ##
============================================
+ Coverage     81.76%   81.78%   +0.01%     
  Complexity      201      201              
============================================
  Files            13       13              
  Lines          1042     1043       +1     
  Branches        139      139              
============================================
+ Hits            852      853       +1     
  Misses          136      136              
  Partials         54       54              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xinyual xinyual merged commit e001987 into opensearch-project:main Feb 7, 2024
14 of 16 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 7, 2024
Signed-off-by: Joshua Li <[email protected]>
(cherry picked from commit e001987)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
zane-neo pushed a commit that referenced this pull request Feb 7, 2024
(cherry picked from commit e001987)

Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 15, 2024
Signed-off-by: Joshua Li <[email protected]>
(cherry picked from commit e001987)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ylwu-amzn pushed a commit that referenced this pull request Feb 15, 2024
(cherry picked from commit e001987)

Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
yuye-aws pushed a commit to yuye-aws/skills that referenced this pull request Apr 26, 2024
…pensearch-project#192)

(cherry picked from commit e001987)

Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: yuye-aws <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants