Files
qdrant/lib/edge/python/examples/mmr-query.py
Andrey Vasnetsov 536fbd0399 Fusion & MMR support in Edge (#7491)
* introduce rescore stage to handle fusion in shard properly

* make shard-stage and collection-stage rescoring explicit

* review fixes
2025-11-14 12:31:05 +01:00

28 lines
491 B
Python

from qdrant_edge import *
from common import *
shard = load_new_shard()
fill_dummy_data(shard)
result = shard.query(QueryRequest(
prefetches = [],
query = Mmr([6.0, 9.0, 4.0, 2.0], None, 0.9, 100),
filter = None,
score_threshold = None,
limit = 10,
offset = 0,
params = None,
with_vector = True,
with_payload = True,
))
for point in result:
print(f"Point: {point.id}, vector: {point.vector}, payload: {point.payload}, score: {point.score}")