Skip to content

Commit

Permalink
Made query vs question consistent in query method
Browse files Browse the repository at this point in the history
  • Loading branch information
whitead committed Jul 15, 2023
1 parent b4124c8 commit 9db08fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions paperqa/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ async def aquery(
bib_str = "\n\n".join(
[f"{i+1}. ({k}): {c}" for i, (k, c) in enumerate(bib.items())]
)
formatted_answer = f"Question: {query}\n\n{answer_text}\n"
formatted_answer = f"Question: {answer.question}\n\n{answer_text}\n"
if len(bib) > 0:
formatted_answer += f"\nReferences\n\n{bib_str}\n"
answer.answer = answer_text
Expand All @@ -611,7 +611,7 @@ async def aquery(
)
post = await chain.arun(**answer.dict(), callbacks=get_callbacks("post"))
answer.answer = post
answer.formatted_answer = f"Question: {query}\n\n{post}\n"
answer.formatted_answer = f"Question: {answer.question}\n\n{post}\n"
if len(bib) > 0:
answer.formatted_answer += f"\nReferences\n\n{bib_str}\n"
if self.memory_model is not None:
Expand Down
2 changes: 1 addition & 1 deletion paperqa/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.3.0"
__version__ = "3.3.1"

0 comments on commit 9db08fa

Please sign in to comment.