Skip to content

Answer extraction when using direct prompt. #32

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

Open
ShuoSIr7 opened this issue Feb 13, 2025 · 0 comments
Open

Answer extraction when using direct prompt. #32

ShuoSIr7 opened this issue Feb 13, 2025 · 0 comments

Comments

@ShuoSIr7
Copy link

Hi, thanks for your brilliant code, there are some issues confused me in the repo.

  1. How can we extract final QA answer when using direct prompt (with Flan-t5-xl model)? When utilizing direct prompt, the model tends to provide a short answer only instead of output contents like "The answer is ...", does that mean we have to run until reach the max_iter?
  2. For direct prompting, The model can't provide CoT outputs, that makes output sequences in different timesteps incoherently, sometimes the model just generate same words and the results are not good. Below is a simple prompt demos in different iters.

"""
First iter:
Wikipedia Title: Thomas Boylston Adams (1772–1832)
Thomas Boylston Adams (September 15, 1772 – March 13, 1832) was the third and youngest son of John and Abigail (Smith) Adams.

Wikipedia Title: Those Who Love (novel)
Those Who Love is a biographical novel of John Adams, as told from the perspective of his wife, Abigail Adams. It was written by American author Irving Stone.

Q: Answer the following question.
Who was the wife of the president when William Bainbridge started his career?
A:Abigail Adams

Second iter:
Wikipedia Title: Thomas Boylston Adams (1772–1832)
Thomas Boylston Adams (September 15, 1772 – March 13, 1832) was the third and youngest son of John and Abigail (Smith) Adams.

Wikipedia Title: Those Who Love (novel)
Those Who Love is a biographical novel of John Adams, as told from the perspective of his wife, Abigail Adams. It was written by American author Irving Stone.

Q: Answer the following question.
Who was the wife of the president when William Bainbridge started his career?
A:Abigail Adams Abigail Adams

Third iter:
Wikipedia Title: Thomas Boylston Adams (1772–1832)
Thomas Boylston Adams (September 15, 1772 – March 13, 1832) was the third and youngest son of John and Abigail (Smith) Adams.

Wikipedia Title: Those Who Love (novel)
Those Who Love is a biographical novel of John Adams, as told from the perspective of his wife, Abigail Adams. It was written by American author Irving Stone.

Q: Answer the following question.
Who was the wife of the president when William Bainbridge started his career?
A:Abigail Adams Abigail Adams Abigail Adams
...
"""

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