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

Should random collection of values be supported? #1382

Open
assert6 opened this issue Oct 17, 2023 · 0 comments
Open

Should random collection of values be supported? #1382

assert6 opened this issue Oct 17, 2023 · 0 comments

Comments

@assert6
Copy link
Contributor

assert6 commented Oct 17, 2023

if self.num_few_shot > 0:
assert is_chat_prompt(sample["input"]), "few shot requires chat prompt"
prompt = sample["input"][:-1]
for s in self.few_shot[: self.num_few_shot]:
prompt += s["sample"]
prompt += sample["input"][-1:]

refer to evals/registry/evals/cissp-study-questions.yaml

few_shot_jsonl has 143 pieces of data, but num_few_shot only takes the first 4 items.

@assert6 assert6 changed the title Should random values be supported? Should random collection of values be supported? Oct 17, 2023
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

No branches or pull requests

1 participant