mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 01:48:32 +02:00
* add mmr to hybrid queries section * update to new interface * proofread * update for renaming `lambda` into `diversity` * update for `candidates_limit` * add formula * fix rust snippet * docs: Simplified go.md * docs: Simplify csharp.md * docs: Simplified java.md * output is regular scores --------- Co-authored-by: Anush <anushshetty90@gmail.com>
445 B
445 B
from qdrant_client import QdrantClient, models
client = QdrantClient(url="http://localhost:6333")
client.query_points(
collection_name="{collection_name}",
query=models.NearestQuery(
nearest=[0.01, 0.45, 0.67], # search vector
mmr=models.Mmr(
diversity=0.5, # 0.0 - relevance; 1.0 - diversity
candidates_limit=100, # num of candidates to preselect
)
),
limit=10,
)