Skip to content

Commit

Permalink
Flatten IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishesh Arora committed Feb 7, 2024
1 parent 6e7dccb commit 46f1463
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ async def search_messages(search_string: str = Query(..., min_length=1), chat_id
n_results=5
)

results["ids"] = results["ids"][0]
results["documents"] = results["documents"][0]

return results
Expand Down

0 comments on commit 46f1463

Please sign in to comment.