Stabilize test_client_search ranking assertion
This commit is contained in:
parent
d76c645862
commit
704bea6f4a
3 changed files with 5 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -13,6 +13,7 @@ wheels/
|
|||
# tests
|
||||
.coverage*
|
||||
evaluations/evaluations/data/
|
||||
evaluations/scripts/
|
||||
tests/data/
|
||||
.pytest_cache/
|
||||
.ruff_cache/
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -736,7 +736,7 @@ async def test_client_search(temp_db_path):
|
|||
assert first_result.document_id == doc1.id
|
||||
|
||||
# Test search with different query
|
||||
ml_results = await client.search("machine learning data", limit=2)
|
||||
ml_results = await client.search("machine learning algorithms", limit=2)
|
||||
assert len(ml_results) > 0
|
||||
|
||||
# Verify first result is from the machine learning document (doc2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue