Skip to content

Commit

Permalink
upd to qdrant v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
generall committed Oct 25, 2021
1 parent 93f7267 commit 376f6a3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "qdrant_client"
version = "0.3.12"
version = "0.4.1"
description = "Client library for the Qdrant vector search engine"
authors = ["Andrey Vasnetsov <andrey@vasnetsov.com>"]
packages = [
Expand Down
18 changes: 17 additions & 1 deletion qdrant_openapi_client/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,11 @@ class PayloadSchemaTypeAnyOf3(BaseModel):
] = Field(..., description="")


class PayloadSelector(BaseModel):
exclude: List[str] = Field(..., description="Post-exclude return payload key type")
include: List[str] = Field(..., description="Include return payload key type")


class PayloadTypeAnyOf(BaseModel):
type: Literal[
"keyword",
Expand Down Expand Up @@ -483,6 +488,7 @@ class PointOperationsAnyOf1DeletePoints(BaseModel):

class PointRequest(BaseModel):
ids: List[int] = Field(..., description="")
with_payload: Optional["WithPayloadInterface"] = Field(None, description="")


class PointStruct(BaseModel):
Expand Down Expand Up @@ -522,7 +528,9 @@ class Record(BaseModel):

class ScoredPoint(BaseModel):
id: int = Field(..., description="Point id")
payload: Optional[Dict[str, "PayloadType"]] = Field(None, description="Payload storage")
score: float = Field(..., description="Points vector distance to the query vector")
version: int = Field(..., description="Point version")


class ScrollRequest(BaseModel):
Expand All @@ -535,7 +543,9 @@ class ScrollRequest(BaseModel):
)
limit: Optional[int] = Field(None, description="Page size. Default: 10")
offset: Optional[int] = Field(None, description="Start ID to read points from. Default: 0")
with_payload: Optional[bool] = Field(None, description="Return point payload with the result. Default: true")
with_payload: Optional["WithPayloadInterface"] = Field(
None, description="Return point payload with the result. Default: True"
)
with_vector: Optional[bool] = Field(None, description="Return point vector with the result. Default: false")


Expand Down Expand Up @@ -570,6 +580,7 @@ class SearchRequest(BaseModel):
params: Optional["SearchParams"] = Field(None, description="Additional search params")
top: int = Field(..., description="Max number of result to return")
vector: List[float] = Field(..., description="Look for vectors closest to this")
with_payload: Optional["WithPayloadInterface"] = Field(None, description="Payload interface")


class StorageOperationsAnyOf(BaseModel):
Expand Down Expand Up @@ -727,6 +738,11 @@ class WalConfigDiff(BaseModel):
StorageOperationsAnyOf2,
StorageOperationsAnyOf3,
]
WithPayloadInterface = Union[
PayloadSelector,
List[str],
bool,
]
CollectionUpdateOperations = Union[
PointOperations,
PayloadOps,
Expand Down

0 comments on commit 376f6a3

Please sign in to comment.