Files
qdrant/lib/edge/python/examples/mmr-query.py
Andrey Vasnetsov 8cdc8dea94 Add pyo3 signature annotations with default values for all Py* structs (#7891)
* Add pyo3 signature annotations with default values for all Py* structs

- Added #[pyo3(signature = (...))] attributes to all Py* structs with optional parameters
- Ensured non-default parameters come before parameters with defaults
- Follows the pattern established in PyScrollRequest
- Updated structs: PySearchRequest, PySearchParams, PyQuantizationSearchParams,
  PyAcornSearchParams, PyQueryRequest, PyPrefetch, PyOrderBy, PyMmr, PyPoint,
  PyFormula, PyShard::load, PySparseVectorDataConfig, PySparseIndexConfig

* fix params ordering
2026-02-09 22:56:49 +01:00

20 lines
362 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], 0.9, candidates_limit=100),
filter = None,
limit = 10,
offset = 0,
with_vector = True,
with_payload = True,
))
for point in result:
print(point)