mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-30 16:38:31 +02:00
add inline comments to code snippets
This commit is contained in:
+1
@@ -117,6 +117,7 @@ def retrieval_run(golden_set: list, collection: str, k: int = 10) -> Run:
|
||||
query=entry["query_vector"],
|
||||
limit=k,
|
||||
).points
|
||||
# p.id type must match the doc_id type in labels (ranx matches by equality).
|
||||
run[entry["query_id"]] = {p.id: p.score for p in results}
|
||||
return Run(run)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user