From d04b9afebb4cb196073ba0ff3ee9bdf4b0cbd7df Mon Sep 17 00:00:00 2001 From: Andrew White Date: Tue, 12 Sep 2023 16:10:04 -0400 Subject: [PATCH] Adjusted formatting of pre chain (#195) --- paperqa/docs.py | 2 +- paperqa/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/paperqa/docs.py b/paperqa/docs.py index adef321f..45442a1b 100644 --- a/paperqa/docs.py +++ b/paperqa/docs.py @@ -628,7 +628,7 @@ async def aquery( pre = await chain.arun( question=answer.question, callbacks=get_callbacks("pre") ) - answer.context = pre + "\n\n" + answer.context + answer.context = answer.context + "\n\nExtra background information:" + pre bib = dict() if len(answer.context) < 10 and not self.memory: answer_text = ( diff --git a/paperqa/version.py b/paperqa/version.py index 9ce9954c..fcbd6954 100644 --- a/paperqa/version.py +++ b/paperqa/version.py @@ -1 +1 @@ -__version__ = "3.10.0" +__version__ = "3.11.0"