lambdadb 0.5.3__py3-none-any.whl → 0.5.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lambdadb might be problematic. Click here for more details.
- lambdadb/_version.py +2 -2
- lambdadb/collections.py +6 -6
- lambdadb/models/querycollectionop.py +17 -17
- lambdadb/sdk.py +3 -3
- lambdadb/sdkconfiguration.py +1 -1
- {lambdadb-0.5.3.dist-info → lambdadb-0.5.5.dist-info}/METADATA +6 -6
- {lambdadb-0.5.3.dist-info → lambdadb-0.5.5.dist-info}/RECORD +9 -9
- {lambdadb-0.5.3.dist-info → lambdadb-0.5.5.dist-info}/LICENSE +0 -0
- {lambdadb-0.5.3.dist-info → lambdadb-0.5.5.dist-info}/WHEEL +0 -0
lambdadb/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "lambdadb"
|
|
6
|
-
__version__: str = "0.5.
|
|
6
|
+
__version__: str = "0.5.5"
|
|
7
7
|
__openapi_doc_version__: str = "1.1.1"
|
|
8
8
|
__gen_version__: str = "2.657.1"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.5.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.5.5 2.657.1 1.1.1 lambdadb"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
lambdadb/collections.py
CHANGED
|
@@ -1176,8 +1176,8 @@ class Collections(BaseSDK):
|
|
|
1176
1176
|
self,
|
|
1177
1177
|
*,
|
|
1178
1178
|
collection_name: str,
|
|
1179
|
-
|
|
1180
|
-
|
|
1179
|
+
query: Dict[str, Any],
|
|
1180
|
+
size: Optional[int] = None,
|
|
1181
1181
|
consistent_read: Optional[bool] = False,
|
|
1182
1182
|
include_vectors: Optional[bool] = False,
|
|
1183
1183
|
sort: Optional[List[Dict[str, Any]]] = None,
|
|
@@ -1190,8 +1190,8 @@ class Collections(BaseSDK):
|
|
|
1190
1190
|
r"""Search a collection with a query and return the most similar documents.
|
|
1191
1191
|
|
|
1192
1192
|
:param collection_name: Collection name.
|
|
1193
|
-
:param size: Number of documents to return. Note that the maximum number of documents is 100.
|
|
1194
1193
|
:param query: Query object.
|
|
1194
|
+
:param size: Number of documents to return. Note that the maximum number of documents is 100.
|
|
1195
1195
|
:param consistent_read: If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.
|
|
1196
1196
|
:param include_vectors: If your application need to include vector values in the response, set includeVectors to true.
|
|
1197
1197
|
:param sort: List of field name, sort direction pairs.
|
|
@@ -1314,8 +1314,8 @@ class Collections(BaseSDK):
|
|
|
1314
1314
|
self,
|
|
1315
1315
|
*,
|
|
1316
1316
|
collection_name: str,
|
|
1317
|
-
|
|
1318
|
-
|
|
1317
|
+
query: Dict[str, Any],
|
|
1318
|
+
size: Optional[int] = None,
|
|
1319
1319
|
consistent_read: Optional[bool] = False,
|
|
1320
1320
|
include_vectors: Optional[bool] = False,
|
|
1321
1321
|
sort: Optional[List[Dict[str, Any]]] = None,
|
|
@@ -1328,8 +1328,8 @@ class Collections(BaseSDK):
|
|
|
1328
1328
|
r"""Search a collection with a query and return the most similar documents.
|
|
1329
1329
|
|
|
1330
1330
|
:param collection_name: Collection name.
|
|
1331
|
-
:param size: Number of documents to return. Note that the maximum number of documents is 100.
|
|
1332
1331
|
:param query: Query object.
|
|
1332
|
+
:param size: Number of documents to return. Note that the maximum number of documents is 100.
|
|
1333
1333
|
:param consistent_read: If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value.
|
|
1334
1334
|
:param include_vectors: If your application need to include vector values in the response, set includeVectors to true.
|
|
1335
1335
|
:param sort: List of field name, sort direction pairs.
|
|
@@ -9,10 +9,10 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class QueryCollectionRequestBodyTypedDict(TypedDict):
|
|
12
|
-
|
|
13
|
-
r"""Number of documents to return. Note that the maximum number of documents is 100."""
|
|
14
|
-
query: NotRequired[Dict[str, Any]]
|
|
12
|
+
query: Dict[str, Any]
|
|
15
13
|
r"""Query object."""
|
|
14
|
+
size: NotRequired[int]
|
|
15
|
+
r"""Number of documents to return. Note that the maximum number of documents is 100."""
|
|
16
16
|
consistent_read: NotRequired[bool]
|
|
17
17
|
r"""If your application requires a strongly consistent read, set consistentRead to true. Although a strongly consistent read might take more time than an eventually consistent read, it always returns the last updated value."""
|
|
18
18
|
include_vectors: NotRequired[bool]
|
|
@@ -24,12 +24,12 @@ class QueryCollectionRequestBodyTypedDict(TypedDict):
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class QueryCollectionRequestBody(BaseModel):
|
|
27
|
-
|
|
28
|
-
r"""Number of documents to return. Note that the maximum number of documents is 100."""
|
|
29
|
-
|
|
30
|
-
query: Optional[Dict[str, Any]] = None
|
|
27
|
+
query: Dict[str, Any]
|
|
31
28
|
r"""Query object."""
|
|
32
29
|
|
|
30
|
+
size: Optional[int] = None
|
|
31
|
+
r"""Number of documents to return. Note that the maximum number of documents is 100."""
|
|
32
|
+
|
|
33
33
|
consistent_read: Annotated[
|
|
34
34
|
Optional[bool], pydantic.Field(alias="consistentRead")
|
|
35
35
|
] = False
|
|
@@ -70,32 +70,32 @@ class QueryCollectionRequest(BaseModel):
|
|
|
70
70
|
class QueryCollectionDocTypedDict(TypedDict):
|
|
71
71
|
collection: str
|
|
72
72
|
r"""Collection name."""
|
|
73
|
-
score: float
|
|
74
|
-
r"""Document similarity score."""
|
|
75
73
|
doc: Dict[str, Any]
|
|
74
|
+
score: NotRequired[float]
|
|
75
|
+
r"""Document similarity score."""
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
class QueryCollectionDoc(BaseModel):
|
|
79
79
|
collection: str
|
|
80
80
|
r"""Collection name."""
|
|
81
81
|
|
|
82
|
-
score: float
|
|
83
|
-
r"""Document similarity score."""
|
|
84
|
-
|
|
85
82
|
doc: Dict[str, Any]
|
|
86
83
|
|
|
84
|
+
score: Optional[float] = None
|
|
85
|
+
r"""Document similarity score."""
|
|
86
|
+
|
|
87
87
|
|
|
88
88
|
class QueryCollectionResponseTypedDict(TypedDict):
|
|
89
89
|
r"""Documents selected by query."""
|
|
90
90
|
|
|
91
91
|
took: int
|
|
92
92
|
r"""Elapsed time in milliseconds."""
|
|
93
|
-
max_score: float
|
|
94
|
-
r"""Maximum score."""
|
|
95
93
|
total: int
|
|
96
94
|
r"""Total number of documents returned."""
|
|
97
95
|
docs: List[QueryCollectionDocTypedDict]
|
|
98
96
|
r"""List of documents."""
|
|
97
|
+
max_score: NotRequired[float]
|
|
98
|
+
r"""Maximum score."""
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
class QueryCollectionResponse(BaseModel):
|
|
@@ -104,11 +104,11 @@ class QueryCollectionResponse(BaseModel):
|
|
|
104
104
|
took: int
|
|
105
105
|
r"""Elapsed time in milliseconds."""
|
|
106
106
|
|
|
107
|
-
max_score: Annotated[float, pydantic.Field(alias="maxScore")]
|
|
108
|
-
r"""Maximum score."""
|
|
109
|
-
|
|
110
107
|
total: int
|
|
111
108
|
r"""Total number of documents returned."""
|
|
112
109
|
|
|
113
110
|
docs: List[QueryCollectionDoc]
|
|
114
111
|
r"""List of documents."""
|
|
112
|
+
|
|
113
|
+
max_score: Annotated[Optional[float], pydantic.Field(alias="maxScore")] = None
|
|
114
|
+
r"""Maximum score."""
|
lambdadb/sdk.py
CHANGED
|
@@ -30,7 +30,7 @@ class LambdaDB(BaseSDK):
|
|
|
30
30
|
project_api_key: Optional[
|
|
31
31
|
Union[Optional[str], Callable[[], Optional[str]]]
|
|
32
32
|
] = None,
|
|
33
|
-
|
|
33
|
+
project_host: Optional[str] = None,
|
|
34
34
|
server_idx: Optional[int] = None,
|
|
35
35
|
server_url: Optional[str] = None,
|
|
36
36
|
url_params: Optional[Dict[str, str]] = None,
|
|
@@ -43,7 +43,7 @@ class LambdaDB(BaseSDK):
|
|
|
43
43
|
r"""Instantiates the SDK configuring it with the provided parameters.
|
|
44
44
|
|
|
45
45
|
:param project_api_key: The project_api_key required for authentication
|
|
46
|
-
:param
|
|
46
|
+
:param project_host: Allows setting the projectHost variable for url substitution
|
|
47
47
|
:param server_idx: The index of the server to use for all methods
|
|
48
48
|
:param server_url: The server URL to use for all methods
|
|
49
49
|
:param url_params: Parameters to optionally template the server URL with
|
|
@@ -85,7 +85,7 @@ class LambdaDB(BaseSDK):
|
|
|
85
85
|
server_url = utils.template_url(server_url, url_params)
|
|
86
86
|
server_defaults: List[Dict[str, str]] = [
|
|
87
87
|
{
|
|
88
|
-
"
|
|
88
|
+
"projectHost": project_host or "api.lambdadb.com/projects/default",
|
|
89
89
|
},
|
|
90
90
|
]
|
|
91
91
|
|
lambdadb/sdkconfiguration.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: lambdadb
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.5
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Speakeasy
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -339,11 +339,11 @@ with LambdaDB(
|
|
|
339
339
|
|
|
340
340
|
### Server Variables
|
|
341
341
|
|
|
342
|
-
The default server `https://{
|
|
342
|
+
The default server `https://{projectHost}` contains variables and is set to `https://api.lambdadb.com/projects/default` by default. To override default values, the following parameters are available when initializing the SDK client instance:
|
|
343
343
|
|
|
344
|
-
| Variable
|
|
345
|
-
|
|
|
346
|
-
| `
|
|
344
|
+
| Variable | Parameter | Default | Description |
|
|
345
|
+
| ------------- | ------------------- | ------------------------------------- | -------------------------- |
|
|
346
|
+
| `projectHost` | `project_host: str` | `"api.lambdadb.com/projects/default"` | The project URL of the API |
|
|
347
347
|
|
|
348
348
|
#### Example
|
|
349
349
|
|
|
@@ -352,7 +352,7 @@ from lambdadb import LambdaDB
|
|
|
352
352
|
|
|
353
353
|
|
|
354
354
|
with LambdaDB(
|
|
355
|
-
|
|
355
|
+
project_host="<value>"
|
|
356
356
|
project_api_key="<YOUR_PROJECT_API_KEY>",
|
|
357
357
|
) as lambda_db:
|
|
358
358
|
|
|
@@ -3,9 +3,9 @@ lambdadb/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,1
|
|
|
3
3
|
lambdadb/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
4
4
|
lambdadb/_hooks/sdkhooks.py,sha256=KGhPvIuUjurDBQOT6t-aWgiu1YDRXpn-OMz6_PkUdFk,2463
|
|
5
5
|
lambdadb/_hooks/types.py,sha256=09dUW5q4HN9aVFAhskDLQqjxLPBfDD97uuucmdcBa6Q,2987
|
|
6
|
-
lambdadb/_version.py,sha256=
|
|
6
|
+
lambdadb/_version.py,sha256=9Bd5wXSR0vbWvrVDIz21ien0JvKeJZTEmFxGdjEtb-M,458
|
|
7
7
|
lambdadb/basesdk.py,sha256=wu3Ri2Po6LxhBngXYkD4-Grlxa0DX9I18cPH2vme-uI,11887
|
|
8
|
-
lambdadb/collections.py,sha256=
|
|
8
|
+
lambdadb/collections.py,sha256=KAD2F4-R40sGDFQFuQ3-969jHNa1i9VcJK3fYXEPFE0,62326
|
|
9
9
|
lambdadb/docs.py,sha256=rfKHo3omdeuMoImwU9T-rZXku_Ikz3jLut29MtpFNaE,62678
|
|
10
10
|
lambdadb/errors/__init__.py,sha256=9_lvXJNi04FsujmLRi4BbOUtWA0L2ob2BJRBnXT5Kpg,3016
|
|
11
11
|
lambdadb/errors/apierror.py,sha256=OBYy3l8_qBC4OXKwl_OwY5ko4klJvjd0j9bqy1C_VZo,1224
|
|
@@ -31,15 +31,15 @@ lambdadb/models/getcollectionop.py,sha256=Zew8mrD3JILVgRhAaTNBqVGlV6MRMyifsn4NXG
|
|
|
31
31
|
lambdadb/models/indexconfigs_union.py,sha256=LW0afqNPHxSd7PVyhi9bWALLkofPpewIzWCH5hlghkI,2055
|
|
32
32
|
lambdadb/models/listcollectionsop.py,sha256=2A7FEUqenNAGTvf_uROGTuKGsx0Ilgmx9bKcgYG81as,603
|
|
33
33
|
lambdadb/models/messageresponse.py,sha256=0QI5LuyZVLh0Z6Jytwlo2ebAZ6x1bw5TVe7zvzQCEnM,300
|
|
34
|
-
lambdadb/models/querycollectionop.py,sha256=
|
|
34
|
+
lambdadb/models/querycollectionop.py,sha256=czOs5bn4ArCoIdFUZVCKfnpjfPPTexmnwjHkk7g3918,3800
|
|
35
35
|
lambdadb/models/security.py,sha256=nP-VTWFY6O-UPNPsWcsg38JcXr2zSy_m7qieDix6SxA,698
|
|
36
36
|
lambdadb/models/status.py,sha256=pl66KcDT9ao6yLXXXOBqerh_StjpNiJb34Yf7VoijEI,250
|
|
37
37
|
lambdadb/models/updatecollectionop.py,sha256=MIy5LNAFX_DkHdnG8g7OmvdUCLSv2tckmM6MvhjMLMk,1546
|
|
38
38
|
lambdadb/models/updatedocsop.py,sha256=HwtHdJBHQc8WphlqD_pLwQsI2kcC4z1mRQ-u0EoxiZE,1207
|
|
39
39
|
lambdadb/models/upsertdocsop.py,sha256=8eOyS_VRJd0xiNipfCPItuqM2VvvgD4USwRra-tvCz4,1101
|
|
40
40
|
lambdadb/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
|
|
41
|
-
lambdadb/sdk.py,sha256=
|
|
42
|
-
lambdadb/sdkconfiguration.py,sha256
|
|
41
|
+
lambdadb/sdk.py,sha256=uDEuPtU8is4KjWYUjCN0UWBSUXm15gNzM1n4OBB9mDY,6459
|
|
42
|
+
lambdadb/sdkconfiguration.py,sha256=-gd-9vv6kXs3n3Eh__5c4cArY58n0FfHIOSS6SRnPrc,1713
|
|
43
43
|
lambdadb/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
|
|
44
44
|
lambdadb/types/basemodel.py,sha256=L79WXvTECbSqaJzs8D3ud_KdIWkU7Cx2wbohDAktE9E,1127
|
|
45
45
|
lambdadb/utils/__init__.py,sha256=BQt6xIdX86A6mOHAnxAXBXaPgdUJtDy2-_4ymAsII_Y,5436
|
|
@@ -59,7 +59,7 @@ lambdadb/utils/serializers.py,sha256=Hndks5M_rJXVub_N5lu0gKZQUoEmWrn6PN7R-0HwvOE
|
|
|
59
59
|
lambdadb/utils/unmarshal_json_response.py,sha256=SdqH-uoU2JxE7yVb6ZGSSzDdrS5VlaijaEYMrkgRb_c,584
|
|
60
60
|
lambdadb/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
61
61
|
lambdadb/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
62
|
-
lambdadb-0.5.
|
|
63
|
-
lambdadb-0.5.
|
|
64
|
-
lambdadb-0.5.
|
|
65
|
-
lambdadb-0.5.
|
|
62
|
+
lambdadb-0.5.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
63
|
+
lambdadb-0.5.5.dist-info/METADATA,sha256=d8zltUbxCEHk3s7lq6lqiBs_rfGULFIbZmKry5_00Q4,21588
|
|
64
|
+
lambdadb-0.5.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
65
|
+
lambdadb-0.5.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|