Skip to content

Commit

Permalink
fix: Adjust unit test for similarity search
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe2803 committed Mar 5, 2024
1 parent 90792a8 commit e85a8ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_vss.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ def test_similarity_search(self):
cm_vss.load()
data = cm_vss.similarity_search(query="who is Mistral ai company?", k=2)
assert len(data) == 2
metadatas = [doc.metadata for doc in data]
for meta in metadatas:
assert meta.get("url") == "https://philippeoger.com/pages/ai-scene-in-europe-last-week/"
urls = [doc["url"] for doc in data]
for url in urls:
assert url == "https://philippeoger.com/pages/ai-scene-in-europe-last-week/"

0 comments on commit e85a8ae

Please sign in to comment.