mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Reorder embeddings search arguments based on argument importance
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user