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

Tweak prompt for length and no relevant results found #239

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

kdid
Copy link
Contributor

@kdid kdid commented Aug 12, 2024

Summary

  • Instructs prompt to keep reading time of answers under 45 seconds
  • Instructs prompt to suggest searching NUL's catalog if no relevant results are found in DC
  • Handles error flow where response.py's prepare_response was constructing and returning an error object but chat.py was not accounting for the error shape. (Example: https://github.com/nulib/repodev_planning_and_docs/issues/5071)
    • Now error will be logged in default lambda log (not metrics) and a generic Internal Server Error returned

@kdid kdid merged commit 9876ec1 into deploy/staging Aug 12, 2024
2 checks passed
@kdid kdid deleted the 4745-prompt-tweak branch August 12, 2024 17:15
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.

2 participants