Skip to content

Commit

Permalink
fix (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
lferran authored Nov 29, 2023
1 parent 84923b4 commit d95afc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nucliadb/nucliadb/search/search/chat/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ async def chat(
rephrased_query = None
if chat_request.context and len(chat_request.context) > 0:
rephrased_query = await rephrase_query_from_chat_history(
kbid, chat_request.context, chat_request.query, user_id
kbid, chat_request.context, user_query, user_id
)

find_results: KnowledgeboxFindResults = await get_find_results(
kbid=kbid,
query=user_query or rephrased_query or "",
query=rephrased_query or user_query or "",
chat_request=chat_request,
ndb_client=client_type,
user=user_id,
Expand Down

1 comment on commit d95afc9

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: d95afc9 Previous: 6a3e3cd Ratio
nucliadb/search/tests/unit/search/test_fetch.py::test_highligh_error 12980.84300226345 iter/sec (stddev: 1.8863946958645605e-7) 6621.622688322887 iter/sec (stddev: 0.000003234538187648496) 0.51

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.