Reorder embeddings search arguments based on argument importance

This commit is contained in:
Debanjum Singh Solanky
2024-10-10 03:57:09 -07:00
parent 0eacc0b2b0
commit 6a8fd9bf33
4 changed files with 7 additions and 7 deletions

View File

@@ -164,7 +164,7 @@ async def test_text_search(search_config: SearchConfig):
query = "Load Khoj on Emacs?"
# Act
hits = await text_search.query(default_user, query)
hits = await text_search.query(query, default_user)
results = text_search.collate_results(hits)
results = sorted(results, key=lambda x: float(x.score))[:1]