nucliadb-models 6.5.0.post4420__py3-none-any.whl → 6.5.0.post4476__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.
- nucliadb_models/graph/requests.py +1 -1
- nucliadb_models/search.py +17 -1
- {nucliadb_models-6.5.0.post4420.dist-info → nucliadb_models-6.5.0.post4476.dist-info}/METADATA +1 -1
- {nucliadb_models-6.5.0.post4420.dist-info → nucliadb_models-6.5.0.post4476.dist-info}/RECORD +6 -6
- {nucliadb_models-6.5.0.post4420.dist-info → nucliadb_models-6.5.0.post4476.dist-info}/WHEEL +0 -0
- {nucliadb_models-6.5.0.post4420.dist-info → nucliadb_models-6.5.0.post4476.dist-info}/top_level.txt +0 -0
@@ -116,7 +116,7 @@ class GraphFilterExpression(BaseModel, extra="forbid"):
|
|
116
116
|
|
117
117
|
|
118
118
|
class BaseGraphSearchRequest(BaseModel):
|
119
|
-
top_k: int = Field(default=50, title="Number of results to retrieve")
|
119
|
+
top_k: int = Field(default=50, le=500, title="Number of results to retrieve")
|
120
120
|
filter_expression: Optional[GraphFilterExpression] = Field(
|
121
121
|
default=None,
|
122
122
|
title="Filter resource by an expression",
|
nucliadb_models/search.py
CHANGED
@@ -693,7 +693,7 @@ class Filter(BaseModel):
|
|
693
693
|
|
694
694
|
class CatalogQueryField(str, Enum):
|
695
695
|
Title = "title"
|
696
|
-
|
696
|
+
Slug = "slug"
|
697
697
|
|
698
698
|
|
699
699
|
class CatalogQueryMatch(str, Enum):
|
@@ -2260,3 +2260,19 @@ def parse_rephrase_prompt(item: AskRequest) -> Optional[str]:
|
|
2260
2260
|
|
2261
2261
|
# We need this to avoid issues with pydantic and generic types defined in another module
|
2262
2262
|
FindRequest.model_rebuild()
|
2263
|
+
|
2264
|
+
|
2265
|
+
class CatalogFacetsPrefix(BaseModel):
|
2266
|
+
prefix: str = Field(pattern="^((/[^/]+)*)$")
|
2267
|
+
depth: Optional[int] = Field(default=None, ge=0)
|
2268
|
+
|
2269
|
+
@model_validator(mode="before")
|
2270
|
+
@classmethod
|
2271
|
+
def build_from_string(cls, data: Any) -> Any:
|
2272
|
+
if isinstance(data, str):
|
2273
|
+
data = {"prefix": data}
|
2274
|
+
return data
|
2275
|
+
|
2276
|
+
|
2277
|
+
class CatalogFacetsRequest(BaseModel):
|
2278
|
+
prefixes: list[CatalogFacetsPrefix] = Field(default=[])
|
{nucliadb_models-6.5.0.post4420.dist-info → nucliadb_models-6.5.0.post4476.dist-info}/RECORD
RENAMED
@@ -16,7 +16,7 @@ nucliadb_models/notifications.py,sha256=3w1HeX9F8nuA7WupHdpXIksX7d0bHO9ofmemYp4R
|
|
16
16
|
nucliadb_models/processing.py,sha256=nhKuHQjqCdb9zJVkYGPTLub23tK9e_lwL5OCDVymZjY,719
|
17
17
|
nucliadb_models/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
18
|
nucliadb_models/resource.py,sha256=FkhwmbjoqQBGyKQIqa40WK2Vq3wtryZeIVWmJ4b-84g,9003
|
19
|
-
nucliadb_models/search.py,sha256=
|
19
|
+
nucliadb_models/search.py,sha256=roDk6DCSM3QAolyl4bgBh17D4Uao1-J2IbZPay4bUy4,87137
|
20
20
|
nucliadb_models/security.py,sha256=opxaDLfvk3aU0sjesK0jGrYLx5h4YCwlKKN0moYs_ig,1150
|
21
21
|
nucliadb_models/synonyms.py,sha256=afbaVqSQSxGLwi2PusVaLSRpkOtA5AZmWOKd1f4nl2E,690
|
22
22
|
nucliadb_models/text.py,sha256=kY2ub7AaGm-4vNaLX3Ju2VvRw-eKZ2LRdM9z7XCNaG0,2898
|
@@ -27,12 +27,12 @@ nucliadb_models/vectorsets.py,sha256=XAgg9DfdfLYpfLh9OepJ_KPH0_RqRQNpVZJr74UnNh0
|
|
27
27
|
nucliadb_models/writer.py,sha256=diwrarp6DxjSUoRmdEljZb68z_ghNvpOgPUGZeKg328,8220
|
28
28
|
nucliadb_models/agents/ingestion.py,sha256=W9cJ0dQT_1vPcjeJ4_Fjb8DylnhQ6qqZrY4v8x1RqUs,3093
|
29
29
|
nucliadb_models/graph/__init__.py,sha256=X538kZPZnndmQeEtnzzPv1hYVGUTDe9U1O7UmAqqxXU,645
|
30
|
-
nucliadb_models/graph/requests.py,sha256=
|
30
|
+
nucliadb_models/graph/requests.py,sha256=LgudW-Wg1UW13_CN57k-ek9M2h5zeTWqb13ktdorRaE,6514
|
31
31
|
nucliadb_models/graph/responses.py,sha256=Sdq8OgFAL1YT-1lJyLLrkqcScvj7YTEqAUwQ-kFAk9M,1399
|
32
32
|
nucliadb_models/internal/__init__.py,sha256=zG33bUz1rHFPtvqQPWn4rDwBJt3FJodGuQYD45quiQg,583
|
33
33
|
nucliadb_models/internal/predict.py,sha256=Pnx6MmLfK65eExe1XnVxqmSlvMwdowewwks9BOEoqMw,2029
|
34
34
|
nucliadb_models/internal/shards.py,sha256=__y1OZtWGiNcPQEWfSFOj8yw458WGi7mM4vZe0K-L1Y,1691
|
35
|
-
nucliadb_models-6.5.0.
|
36
|
-
nucliadb_models-6.5.0.
|
37
|
-
nucliadb_models-6.5.0.
|
38
|
-
nucliadb_models-6.5.0.
|
35
|
+
nucliadb_models-6.5.0.post4476.dist-info/METADATA,sha256=LkSE_e0mIhFu41_q7yI_mrx39OQIOZT_2uYeaf9-W_g,776
|
36
|
+
nucliadb_models-6.5.0.post4476.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
37
|
+
nucliadb_models-6.5.0.post4476.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
|
38
|
+
nucliadb_models-6.5.0.post4476.dist-info/RECORD,,
|
File without changes
|
{nucliadb_models-6.5.0.post4420.dist-info → nucliadb_models-6.5.0.post4476.dist-info}/top_level.txt
RENAMED
File without changes
|