Skip to content

fix genqa eval normlization bug, add more task#3

Open
rakkit wants to merge 2 commits into
opt_moefrom
opt_moe_dev
Open

fix genqa eval normlization bug, add more task#3
rakkit wants to merge 2 commits into
opt_moefrom
opt_moe_dev

Conversation

@rakkit

@rakkit rakkit commented Jun 5, 2026

Copy link
Copy Markdown

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aa968d725a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


def pubmedqa_cf_prompt(line, task_name: str = None):
"""CF variant: score full answer text (yes/no/maybe) via logprobs."""
ctx = " ".join(line["CONTEXTS"]) if isinstance(line["CONTEXTS"], list) else line["CONTEXTS"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Read PubMedQA rows with the new schema

After switching the configs below to qiaojin/PubMedQA, the prompt functions still use the old pubmed_qa column names. The new dataset rows expose lowercase question and a context dict with contexts, not QUESTION/CONTEXTS, so selecting pubmedqa:cf, pubmedqa:mcf, or pubmedqa:mcf_em will raise KeyError before any examples are scored. Either keep the old dataset or update both prompt functions to read the new schema.

Useful? React with 👍 / 👎.

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