Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Commit

Permalink
tests: add assertion for correct RAG results
Browse files Browse the repository at this point in the history
  • Loading branch information
alekst23 committed Sep 4, 2024
1 parent 8a13f33 commit 9e31599
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/api/test_rag_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_rag_needle_haystack():
# Get the response content from the last message
message_content = messages[-1].content[0].text
assert isinstance(message_content, Text)
assert "orange" in message_content.value
assert len(message_content.annotations) > 0

for a in message_content.annotations:
Expand Down

0 comments on commit 9e31599

Please sign in to comment.