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

[DRAFT] Scorers Flexible Dictionary Inputs #816

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jbolor21
Copy link
Contributor

Adding dictionary inputs for scorers to make this more flexible and adaptable

Tests and Documentation

Ran notebooks, fixing unit tests

self._prompt_target = chat_target
self.scorer_type = "float_scale"

likert_scale = yaml.safe_load(likert_scale_path.read_text(encoding="utf-8"))
if isinstance(likert_scale, Path):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep in mind the end goal where this needs to be easy as heck to use. I might do something like the system prompt can be either

  • Paths to the yaml files, which may need to be a new object because there are often a couple of these. E.g. this could be SystemPromptYamlPaths which users can configure paths, and parameters
  • a string (just the direct system prompt)
  • SeedPrompt? Could this also be related to the SystemPromptYamlPaths object, and reuse the parameters and how they are applied?

It might make sense to write this up in a one pager with how it might look :)

And if it's not one of those things, throw an exception

@jbolor21 jbolor21 marked this pull request as draft March 21, 2025 23:03
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