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

refactor(prompt_manager)🔧: Refactor prompt hashing and docstring handling #149

Merged
merged 2 commits into from
Nov 23, 2024

Conversation

ericmjl
Copy link
Owner

@ericmjl ericmjl commented Nov 23, 2024

  • Remove immediate versioning of docstrings to delay hash computation.
  • Introduce closure variable for storing prompt hash value.
  • Compute prompt hash only on the first call to enhance performance.
  • Maintain the rest of the wrapper functionality unchanged.

…ved role handling

- Transformed the prompt function into a class to encapsulate role handling.
- Updated method signatures and internal logic to support the new class structure.
…ling

- Remove immediate versioning of docstrings to delay hash computation.
- Introduce closure variable for storing prompt hash value.
- Compute prompt hash only on the first call to enhance performance.
- Maintain the rest of the wrapper functionality unchanged.
Copy link

PR Preview Action v1.4.8
🚀 Deployed preview to https://ericmjl.github.io/llamabot/pr-preview/pr-149/
on branch gh-pages at 2024-11-23 14:29 UTC

@ericmjl ericmjl merged commit 7b28762 into main Nov 23, 2024
11 checks passed
@ericmjl ericmjl deleted the prompt-manager-class branch November 23, 2024 23:11
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.

1 participant