nucliadb-models 6.5.1.post4539__py3-none-any.whl → 6.6.1.post4558__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/search.py +17 -7
- {nucliadb_models-6.5.1.post4539.dist-info → nucliadb_models-6.6.1.post4558.dist-info}/METADATA +1 -1
- {nucliadb_models-6.5.1.post4539.dist-info → nucliadb_models-6.6.1.post4558.dist-info}/RECORD +5 -5
- {nucliadb_models-6.5.1.post4539.dist-info → nucliadb_models-6.6.1.post4558.dist-info}/WHEEL +0 -0
- {nucliadb_models-6.5.1.post4539.dist-info → nucliadb_models-6.6.1.post4558.dist-info}/top_level.txt +0 -0
nucliadb_models/search.py
CHANGED
@@ -706,9 +706,11 @@ class CatalogQueryMatch(str, Enum):
|
|
706
706
|
|
707
707
|
|
708
708
|
class CatalogQuery(BaseModel):
|
709
|
-
field: CatalogQueryField = CatalogQueryField.Title
|
710
|
-
match: CatalogQueryMatch =
|
711
|
-
|
709
|
+
field: CatalogQueryField = Field(default=CatalogQueryField.Title, description="Field to search in")
|
710
|
+
match: CatalogQueryMatch = Field(
|
711
|
+
default=CatalogQueryMatch.Exact, description="Operator to use for matching results"
|
712
|
+
)
|
713
|
+
query: str = Field(min_length=1, description="Text to search for")
|
712
714
|
|
713
715
|
@model_validator(mode="after")
|
714
716
|
def check_match_field(self) -> Self:
|
@@ -1680,7 +1682,8 @@ Using this feature also disables the `citations` parameter. For maximal accuracy
|
|
1680
1682
|
)
|
1681
1683
|
|
1682
1684
|
search_configuration: Optional[str] = Field(
|
1683
|
-
default=None,
|
1685
|
+
default=None,
|
1686
|
+
description="Load ask parameters from this configuration. Parameters in the request override parameters from the configuration.",
|
1684
1687
|
)
|
1685
1688
|
|
1686
1689
|
@field_validator("rag_strategies", mode="before")
|
@@ -1855,7 +1858,8 @@ class FindRequest(BaseSearchRequest):
|
|
1855
1858
|
)
|
1856
1859
|
|
1857
1860
|
search_configuration: Optional[str] = Field(
|
1858
|
-
default=None,
|
1861
|
+
default=None,
|
1862
|
+
description="Load find parameters from this configuration. Parameters in the request override parameters from the configuration.",
|
1859
1863
|
)
|
1860
1864
|
generative_model: Optional[str] = Field(
|
1861
1865
|
default=None,
|
@@ -2324,7 +2328,11 @@ FindRequest.model_rebuild()
|
|
2324
2328
|
|
2325
2329
|
class CatalogFacetsPrefix(BaseModel):
|
2326
2330
|
prefix: str = Field(pattern="^((/[^/]+)*)$")
|
2327
|
-
depth: Optional[int] = Field(
|
2331
|
+
depth: Optional[int] = Field(
|
2332
|
+
default=None,
|
2333
|
+
ge=0,
|
2334
|
+
description="Only include facets up to this depth from the prefix, leave empty to include all depths",
|
2335
|
+
)
|
2328
2336
|
|
2329
2337
|
@model_validator(mode="before")
|
2330
2338
|
@classmethod
|
@@ -2335,7 +2343,9 @@ class CatalogFacetsPrefix(BaseModel):
|
|
2335
2343
|
|
2336
2344
|
|
2337
2345
|
class CatalogFacetsRequest(BaseModel):
|
2338
|
-
prefixes: list[CatalogFacetsPrefix] = Field(
|
2346
|
+
prefixes: list[CatalogFacetsPrefix] = Field(
|
2347
|
+
default=[], description="List of facets prefixes to include (empty to includ everything)"
|
2348
|
+
)
|
2339
2349
|
|
2340
2350
|
|
2341
2351
|
class CatalogFacetsResponse(BaseModel):
|
{nucliadb_models-6.5.1.post4539.dist-info → nucliadb_models-6.6.1.post4558.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=njGUScrDA2Dn1y26lQ9_dVYzHIldkPMVpDgP7zstgXk,90163
|
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
|
@@ -32,7 +32,7 @@ nucliadb_models/graph/responses.py,sha256=Sdq8OgFAL1YT-1lJyLLrkqcScvj7YTEqAUwQ-k
|
|
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.
|
36
|
-
nucliadb_models-6.
|
37
|
-
nucliadb_models-6.
|
38
|
-
nucliadb_models-6.
|
35
|
+
nucliadb_models-6.6.1.post4558.dist-info/METADATA,sha256=rQNZCC1B04hcbuk9ke2BqSX-IZ_ckwCY8eQngKNnWik,776
|
36
|
+
nucliadb_models-6.6.1.post4558.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
37
|
+
nucliadb_models-6.6.1.post4558.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
|
38
|
+
nucliadb_models-6.6.1.post4558.dist-info/RECORD,,
|
File without changes
|
{nucliadb_models-6.5.1.post4539.dist-info → nucliadb_models-6.6.1.post4558.dist-info}/top_level.txt
RENAMED
File without changes
|