Future-House / paper-qa

High accuracy RAG for answering questions from scientific documents with citations
Apache License 2.0
6.13k stars 576 forks source link

Increasing answer length #573

Open Litreviewing opened 2 days ago

Litreviewing commented 2 days ago

How can I increase the answer length of the response?

dosubot[bot] commented 2 days ago

To increase the answer length, modify the "answer_length" parameter in the configuration file to a higher range, such as "about 200 words, but can be longer" [1][2].

To continue talking to Dosu, mention @dosu.

Litreviewing commented 2 days ago

How Do i modify that?

@Dosu

Litreviewing commented 2 days ago

How can I modify the answer length? @dosu.

dosubot[bot] commented 2 days ago

To modify the answer length, update the answer_length field in the AnswerSettings class within the settings.py file. For example:

answer_length: str = Field(
    "about 150 words", description="Length of final answer"
)

Adjust the value as needed to increase or decrease the length [1].

To continue talking to Dosu, mention @dosu.

Litreviewing commented 2 days ago

@dosu.

I changed the length in the settings file to answer_length: str = Field( "about 800 words", description="Length of final answer" )

yet when I ask it a question I still get only about 200 words response

dosubot[bot] commented 2 days ago

Make sure there are no other configuration files or settings that might override your change. For example, check paperqa/configs/debug.json and paperqa/configs/tier1_limits.json, as they might specify different answer lengths [1][2].

To continue talking to Dosu, mention @dosu.