mirror of
https://github.com/qdrant/qdrant-client.git
synced 2026-09-21 13:37:55 -05:00
Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
This commit is contained in:
committed by
George Panchuk
co-authored by
George Panchuk
parent
53c81ee2c8
commit
f28634c053
@@ -365,6 +365,12 @@ class AsyncQdrantLocal(AsyncQdrantBase):
|
||||
**kwargs: Any,
|
||||
) -> types.QueryResponse:
|
||||
collection = self._get_collection(collection_name)
|
||||
if search_params is not None:
|
||||
show_warning_once(
|
||||
message="Local mode performs exact (brute-force) search, `search_params` has no effect.",
|
||||
idx="local_query_points_search_params_ignored",
|
||||
stacklevel=5,
|
||||
)
|
||||
if query is not None:
|
||||
(query, mentioned_ids) = self._resolve_query_input(
|
||||
collection_name, query, using, lookup_from
|
||||
@@ -392,6 +398,7 @@ class AsyncQdrantLocal(AsyncQdrantBase):
|
||||
query=request.query,
|
||||
prefetch=request.prefetch,
|
||||
query_filter=request.filter,
|
||||
search_params=request.params,
|
||||
limit=request.limit or 10,
|
||||
offset=request.offset,
|
||||
with_payload=request.with_payload,
|
||||
@@ -431,6 +438,12 @@ class AsyncQdrantLocal(AsyncQdrantBase):
|
||||
**kwargs: Any,
|
||||
) -> types.GroupsResult:
|
||||
collection = self._get_collection(collection_name)
|
||||
if search_params is not None:
|
||||
show_warning_once(
|
||||
message="Local mode performs exact (brute-force) search, `search_params` has no effect.",
|
||||
idx="local_query_points_search_params_ignored",
|
||||
stacklevel=5,
|
||||
)
|
||||
if query is not None:
|
||||
(query, mentioned_ids) = self._resolve_query_input(
|
||||
collection_name, query, using, lookup_from
|
||||
|
||||
@@ -406,6 +406,13 @@ class QdrantLocal(QdrantBase):
|
||||
) -> types.QueryResponse:
|
||||
collection = self._get_collection(collection_name)
|
||||
|
||||
if search_params is not None:
|
||||
show_warning_once(
|
||||
message="Local mode performs exact (brute-force) search, `search_params` has no effect.",
|
||||
idx="local_query_points_search_params_ignored",
|
||||
stacklevel=5,
|
||||
)
|
||||
|
||||
if query is not None:
|
||||
query, mentioned_ids = self._resolve_query_input(
|
||||
collection_name, query, using, lookup_from
|
||||
@@ -438,6 +445,7 @@ class QdrantLocal(QdrantBase):
|
||||
query=request.query,
|
||||
prefetch=request.prefetch,
|
||||
query_filter=request.filter,
|
||||
search_params=request.params,
|
||||
limit=request.limit or 10,
|
||||
offset=request.offset,
|
||||
with_payload=request.with_payload,
|
||||
@@ -477,6 +485,14 @@ class QdrantLocal(QdrantBase):
|
||||
**kwargs: Any,
|
||||
) -> types.GroupsResult:
|
||||
collection = self._get_collection(collection_name)
|
||||
|
||||
if search_params is not None:
|
||||
show_warning_once(
|
||||
message="Local mode performs exact (brute-force) search, `search_params` has no effect.",
|
||||
idx="local_query_points_search_params_ignored",
|
||||
stacklevel=5,
|
||||
)
|
||||
|
||||
if query is not None:
|
||||
query, mentioned_ids = self._resolve_query_input(
|
||||
collection_name, query, using, lookup_from
|
||||
|
||||
Reference in New Issue
Block a user