Skip to content

Commit

Permalink
⚗️ Questions Eval: externalize dataset name
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmeoni committed Oct 18, 2024
1 parent 27ce804 commit 8db08ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/questions_eval/configs/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defaults:

samples: 2
num_questions: 5
dataset: "DataFog/medical-transcription-instruct"

prompts:
transcription: >-
Expand Down
2 changes: 1 addition & 1 deletion lib/questions_eval/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def main(cfg: DictConfig):
evaluation_chain = create_chain(cfg.prompts.evaluation, question_llm, False)

# Load and process dataset
loaded_dataset = load_dataset("DataFog/medical-transcription-instruct", split="train")
loaded_dataset = load_dataset(cfg.dataset, split="train")
df = loaded_dataset.to_pandas().iloc[: cfg.samples]

tqdm.pandas(desc="Generating data...")
Expand Down

0 comments on commit 8db08ef

Please sign in to comment.