Skip to content

Commit

Permalink
Refacto: Clearer code
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Jul 10, 2023
1 parent 961c106 commit 5b143b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conversation-api/persistence/qdrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def message_search(self, q: str, user_id: UUID) -> SearchModel[MessageMode
return SearchModel[MessageModel](
answers=[
SearchAnswerModel[MessageModel](data=m, score=s)
for m, s in zip(messages, [r.score for r in raws])
for m, s in zip(messages, [raw.score for raw in raws])
],
query=q,
stats=SearchStatsModel(total=total, time=time.monotonic() - start),
Expand Down

0 comments on commit 5b143b3

Please sign in to comment.