Skip to content

Commit

Permalink
new: extend signatures with images and inference objects (#842)
Browse files Browse the repository at this point in the history
* new: extend signatures with images and inference objects

* fix: remove draft code
  • Loading branch information
joein authored Nov 11, 2024
1 parent f9fbc90 commit 6d29cc6
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qdrant_client/async_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ async def query_points(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down Expand Up @@ -133,6 +135,8 @@ async def query_points_groups(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down
4 changes: 4 additions & 0 deletions qdrant_client/async_qdrant_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ async def query_points(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down Expand Up @@ -564,6 +566,8 @@ async def query_points_groups(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down
4 changes: 4 additions & 0 deletions qdrant_client/async_qdrant_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ async def query_points(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down Expand Up @@ -603,6 +605,8 @@ async def query_points_groups(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down
4 changes: 4 additions & 0 deletions qdrant_client/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def query_points(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down Expand Up @@ -129,6 +131,8 @@ def query_points_groups(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down
2 changes: 2 additions & 0 deletions qdrant_client/conversions/common_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def get_args_subscribed(tp): # type: ignore
Query: TypeAlias = rest.Query
Prefetch: TypeAlias = rest.Prefetch
Document: TypeAlias = rest.Document
Image: TypeAlias = rest.Image
InferenceObject: TypeAlias = rest.InferenceObject

SearchRequest = Union[rest.SearchRequest, grpc.SearchPoints]
RecommendRequest = Union[rest.RecommendRequest, grpc.RecommendPoints]
Expand Down
2 changes: 2 additions & 0 deletions qdrant_client/local/async_qdrant_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ async def query_points_groups(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down
2 changes: 2 additions & 0 deletions qdrant_client/local/local_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,8 @@ def query_groups(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down
2 changes: 2 additions & 0 deletions qdrant_client/local/qdrant_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ def query_points_groups(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down
4 changes: 4 additions & 0 deletions qdrant_client/qdrant_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,8 @@ def query_points(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down Expand Up @@ -618,6 +620,8 @@ def query_points_groups(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down
4 changes: 4 additions & 0 deletions qdrant_client/qdrant_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ def query_points(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down Expand Up @@ -784,6 +786,8 @@ def query_points_groups(
types.Query,
types.NumpyArray,
types.Document,
types.Image,
types.InferenceObject,
None,
] = None,
using: Optional[str] = None,
Expand Down

0 comments on commit 6d29cc6

Please sign in to comment.