paper-qa icon indicating copy to clipboard operation
paper-qa copied to clipboard

ValueError when setting 'k' in AnswerSettings

Open ialzyoud opened this issue 1 year ago • 1 comments

Hi,

I've encountered an error when trying to set the 'k' parameter in AnswerSettings. Here's the code I'm using:

from paperqa import Settings

settings = Settings()
settings.answer.answer_max_sources = 3
settings.answer.k = 5

docs.query(
    "What manufacturing challenges are unique to bispecific antibodies?",
    settings=settings,
)

ialzyoud avatar Oct 10 '24 20:10 ialzyoud