Skip to content

Commit e50eb17

Browse files
joeingenerallcoszio
committed
Update models 1.17 (#1154)
* new: update models, add conversions, add conversion tests * new: add list shard keys, add get_optimizations * new: add weights to rrf * new: add cluster telemetry * new: add update_mode usage * fix: fix mypy * fix: populate inspection cache * use RRF ranking as in the core * timeouts propagation * gen async clients * implement score threshold for formular * new: add tests for update mode * fix: fix test skip comment * Relevance feedback local mode (#1152) * AI: implement local computation prompt: Considering the implementation in the server, make the local python implementation of the same scores calculation in this file: [@distances.py](...), consider that the local mode calculates for all points at once, while the server does it point by point. Server impl: ``` ... ``` * use constant for MARGIN * relevance feedback integration and test * do not exclude relevance context from result * Revert "do not exclude relevance context from result" This reverts commit 9c2a5ce. --------- Co-authored-by: generall <andrey@vasnetsov.com> * fix: fix conversion test --------- Co-authored-by: generall <andrey@vasnetsov.com> Co-authored-by: Luis Cossío <luis.cossio@qdrant.com>
1 parent 5234450 commit e50eb17

48 files changed

Lines changed: 5360 additions & 2084 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

qdrant_client/async_client_base.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,3 +378,16 @@ async def recover_current_peer(self) -> bool:
378378

379379
async def remove_peer(self, peer_id: int, **kwargs: Any) -> bool:
380380
raise NotImplementedError()
381+
382+
async def get_optimizations(
383+
self, collection_name: str, **kwargs: Any
384+
) -> types.OptimizationsResponse:
385+
raise NotImplementedError()
386+
387+
async def list_shard_keys(
388+
self, collection_name: str, **kwargs: Any
389+
) -> types.ShardKeysResponse:
390+
raise NotImplementedError()
391+
392+
async def cluster_telemetry(self, **kwargs: Any) -> types.DistributedTelemetryData:
393+
raise NotImplementedError()

qdrant_client/async_qdrant_client.py

Lines changed: 122 additions & 0 deletions
Large diffs are not rendered by default.

qdrant_client/async_qdrant_remote.py

Lines changed: 93 additions & 2 deletions
Large diffs are not rendered by default.

qdrant_client/client_base.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,3 +408,23 @@ def recover_current_peer(self) -> bool:
408408

409409
def remove_peer(self, peer_id: int, **kwargs: Any) -> bool:
410410
raise NotImplementedError()
411+
412+
def get_optimizations(
413+
self,
414+
collection_name: str,
415+
**kwargs: Any,
416+
) -> types.OptimizationsResponse:
417+
raise NotImplementedError()
418+
419+
def list_shard_keys(
420+
self,
421+
collection_name: str,
422+
**kwargs: Any,
423+
) -> types.ShardKeysResponse:
424+
raise NotImplementedError()
425+
426+
def cluster_telemetry(
427+
self,
428+
**kwargs: Any,
429+
) -> types.DistributedTelemetryData:
430+
raise NotImplementedError()

qdrant_client/conversions/common_types.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def get_args_subscribed(tp): # type: ignore
102102
Image: TypeAlias = rest.Image
103103
InferenceObject: TypeAlias = rest.InferenceObject
104104
StrictModeConfig: TypeAlias = rest.StrictModeConfig
105+
UpdateMode: TypeAlias = rest.UpdateMode
105106

106107
QueryRequest: TypeAlias = rest.QueryRequest
107108

@@ -127,6 +128,9 @@ def get_args_subscribed(tp): # type: ignore
127128
ClusterOperations: TypeAlias = rest.ClusterOperations
128129
ClusterStatus: TypeAlias = rest.ClusterStatus
129130
CollectionClusterInfo: TypeAlias = rest.CollectionClusterInfo
131+
OptimizationsResponse: TypeAlias = rest.OptimizationsResponse
132+
ShardKeysResponse: TypeAlias = rest.ShardKeysResponse
133+
DistributedTelemetryData: TypeAlias = rest.DistributedTelemetryData
130134

131135
# we can't use `nptyping` package due to numpy/python-version incompatibilities
132136
# thus we need to define precise type annotations while we support python3.7

0 commit comments

Comments
 (0)