Skip to content

Commit

Permalink
fix: remove a print
Browse files Browse the repository at this point in the history
  • Loading branch information
leoguillaumegouv committed Oct 8, 2024
1 parent 693b97c commit 88e56c5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ui/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
response = requests.post(f"{BASE_URL}/search", json=data, headers={"Authorization": f"Bearer {API_KEY}"})
assert response.status_code == 200
prompt_template = "Réponds à la question suivante en te basant sur les documents ci-dessous : {prompt}\n\nDocuments :\n{chunks}"
print(response.json()["data"])
chunks = "\n".join([result["chunk"]["content"] for result in response.json()["data"]])

sources = list(set(result["chunk"]["metadata"]["document_name"] for result in response.json()["data"]))
Expand Down

0 comments on commit 88e56c5

Please sign in to comment.