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

Type hint doesn't match documentation for prompts arg of PromptPipeline.__init__ #494

Closed
g-simmons opened this issue Jun 2, 2023 · 1 comment · Fixed by #496
Closed

Comments

@g-simmons
Copy link
Contributor

@register_datapipeline
class PromptPipeline(BasePipeline):
"""
Dataloader which is used to supply prompts for either training or evaluation
Args:
prompts (`List[str]` or `List[Dict[str, Any]]`): list of raw text prompts or a dictionary with a required
key `"prompt"` and extra information, that would be passed along the generation for that prompt as a
keyword argument to a reward function.

prompts: Union[Dict[str, Any], List[str]],

@LouisCastricato
Copy link
Contributor

would be an easy PR if you wanna fix it ;)

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 a pull request may close this issue.

2 participants