mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-02 16:10:58 -05:00
* 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
20 lines
362 B
Python
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)
|