Skip to content

feat: add ID-based few-shot example selection (#634)#1263

Open
sohammmmm10 wants to merge 1 commit into
huggingface:mainfrom
sohammmmm10:feat/fewshot-id-selection
Open

feat: add ID-based few-shot example selection (#634)#1263
sohammmmm10 wants to merge 1 commit into
huggingface:mainfrom
sohammmmm10:feat/fewshot-id-selection

Conversation

@sohammmmm10

Copy link
Copy Markdown

Add few_shots_id_column and few_shots_id_list to LightevalTaskConfig, allowing users to specify exact dataset rows as few-shot examples by their unique identifiers. This mirrors the id_sampler functionality in lm-evaluation-harness.

When configured, the FewShotSampler filters the few-shot pool to only include docs matching the given IDs, preserving the order specified in few_shots_id_list. Existing behavior is unaffected (both fields default to None).

Add few_shots_id_column and few_shots_id_list to LightevalTaskConfig,
allowing users to specify exact dataset rows as few-shot examples by
their unique identifiers. This mirrors the id_sampler functionality
in lm-evaluation-harness.

When configured, the FewShotSampler filters the few-shot pool to only
include docs matching the given IDs, preserving the order specified in
few_shots_id_list. Existing behavior is unaffected (both fields default
to None).
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