nucliadb-models 6.2.1.post3277__py3-none-any.whl → 6.2.1.post3296__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/common.py +7 -0
- nucliadb_models/search.py +0 -8
- {nucliadb_models-6.2.1.post3277.dist-info → nucliadb_models-6.2.1.post3296.dist-info}/METADATA +1 -1
- {nucliadb_models-6.2.1.post3277.dist-info → nucliadb_models-6.2.1.post3296.dist-info}/RECORD +6 -6
- {nucliadb_models-6.2.1.post3277.dist-info → nucliadb_models-6.2.1.post3296.dist-info}/WHEEL +0 -0
- {nucliadb_models-6.2.1.post3277.dist-info → nucliadb_models-6.2.1.post3296.dist-info}/top_level.txt +0 -0
nucliadb_models/common.py
CHANGED
|
@@ -230,6 +230,12 @@ class Representation(BaseModel):
|
|
|
230
230
|
reference_file: Optional[str] = None
|
|
231
231
|
|
|
232
232
|
|
|
233
|
+
class ParagraphRelations(BaseModel):
|
|
234
|
+
parents: list[str] = []
|
|
235
|
+
siblings: list[str] = []
|
|
236
|
+
replacements: list[str] = []
|
|
237
|
+
|
|
238
|
+
|
|
233
239
|
class Paragraph(BaseModel):
|
|
234
240
|
start: Optional[int] = None
|
|
235
241
|
end: Optional[int] = None
|
|
@@ -251,6 +257,7 @@ class Paragraph(BaseModel):
|
|
|
251
257
|
key: Optional[str] = None
|
|
252
258
|
page: Optional[PageInformation] = None
|
|
253
259
|
representation: Optional[Representation] = None
|
|
260
|
+
relations: Optional[ParagraphRelations] = None
|
|
254
261
|
|
|
255
262
|
|
|
256
263
|
class Shards(BaseModel):
|
nucliadb_models/search.py
CHANGED
|
@@ -472,11 +472,6 @@ class SearchParamDefaults:
|
|
|
472
472
|
description="The query to get a generative answer for",
|
|
473
473
|
max_items=20_000,
|
|
474
474
|
)
|
|
475
|
-
shards = ParamDefault(
|
|
476
|
-
default=[],
|
|
477
|
-
title="Shards",
|
|
478
|
-
description="The list of shard replicas to search in. If empty, random replicas will be selected.",
|
|
479
|
-
)
|
|
480
475
|
catalog_page_number = ParamDefault(
|
|
481
476
|
default=0,
|
|
482
477
|
title="Page number",
|
|
@@ -675,7 +670,6 @@ class CatalogRequest(BaseModel):
|
|
|
675
670
|
sort: Optional[SortOptions] = SearchParamDefaults.sort.to_pydantic_field()
|
|
676
671
|
page_number: int = SearchParamDefaults.catalog_page_number.to_pydantic_field()
|
|
677
672
|
page_size: int = SearchParamDefaults.catalog_page_size.to_pydantic_field()
|
|
678
|
-
shards: list[str] = SearchParamDefaults.shards.to_pydantic_field(deprecated=True)
|
|
679
673
|
debug: SkipJsonSchema[bool] = SearchParamDefaults.debug.to_pydantic_field()
|
|
680
674
|
with_status: Optional[ResourceProcessingStatus] = Field(
|
|
681
675
|
default=None,
|
|
@@ -777,7 +771,6 @@ class BaseSearchRequest(AuditMetadataBase):
|
|
|
777
771
|
show: list[ResourceProperties] = SearchParamDefaults.show.to_pydantic_field()
|
|
778
772
|
field_type_filter: list[FieldTypeName] = SearchParamDefaults.field_type_filter.to_pydantic_field()
|
|
779
773
|
extracted: list[ExtractedDataTypeName] = SearchParamDefaults.extracted.to_pydantic_field()
|
|
780
|
-
shards: list[str] = SearchParamDefaults.shards.to_pydantic_field()
|
|
781
774
|
vector: Optional[list[float]] = SearchParamDefaults.vector.to_pydantic_field()
|
|
782
775
|
vectorset: Optional[str] = SearchParamDefaults.vectorset.to_pydantic_field()
|
|
783
776
|
with_duplicates: bool = SearchParamDefaults.with_duplicates.to_pydantic_field()
|
|
@@ -1418,7 +1411,6 @@ class AskRequest(AuditMetadataBase):
|
|
|
1418
1411
|
show: list[ResourceProperties] = SearchParamDefaults.show.to_pydantic_field()
|
|
1419
1412
|
field_type_filter: list[FieldTypeName] = SearchParamDefaults.field_type_filter.to_pydantic_field()
|
|
1420
1413
|
extracted: list[ExtractedDataTypeName] = SearchParamDefaults.extracted.to_pydantic_field()
|
|
1421
|
-
shards: list[str] = SearchParamDefaults.shards.to_pydantic_field()
|
|
1422
1414
|
context: Optional[list[ChatContextMessage]] = SearchParamDefaults.chat_context.to_pydantic_field()
|
|
1423
1415
|
extra_context: Optional[list[str]] = Field(
|
|
1424
1416
|
default=None,
|
{nucliadb_models-6.2.1.post3277.dist-info → nucliadb_models-6.2.1.post3296.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
nucliadb_models/__init__.py,sha256=qSmhNKACMwdbU1rklMWlmJKmlRaWvrSksTtwEVkiydQ,1331
|
|
2
|
-
nucliadb_models/common.py,sha256=
|
|
2
|
+
nucliadb_models/common.py,sha256=JEEY7_AxRCBPHUF6J8XptR_QnGEjRBd02Kqm5WOySYc,7828
|
|
3
3
|
nucliadb_models/configuration.py,sha256=pKtxS8G_tGaJkvKopVeorZTuOEirlg-VLcpxUEAn2lc,1359
|
|
4
4
|
nucliadb_models/content_types.py,sha256=2B3TJpPYJqd-9xGiNiHJFngSIrVyNsZlN4PeB-HafIk,3682
|
|
5
5
|
nucliadb_models/conversation.py,sha256=i9x80US5e2I40zIIxeQg8BtaNri_qmuk1cSb_6VZu6U,3845
|
|
@@ -15,7 +15,7 @@ nucliadb_models/notifications.py,sha256=jr2J3zncs880jYf2oZHYt0VFcnlZevsbkyX69ovT
|
|
|
15
15
|
nucliadb_models/processing.py,sha256=UeU-VxbBlOzkNxviOS3a0X_k7Ye-jYu3UOdGuu21M8M,971
|
|
16
16
|
nucliadb_models/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
nucliadb_models/resource.py,sha256=cjYloaRuCJFc3lGIxLZcX959oOq_N1f3V9bpPMYv4WA,9255
|
|
18
|
-
nucliadb_models/search.py,sha256=
|
|
18
|
+
nucliadb_models/search.py,sha256=1aehKd2EYlKOpz8c0CG5eaaAcDmRS9zaEAmFkWvDhE0,80139
|
|
19
19
|
nucliadb_models/security.py,sha256=RewdzQ55nPZ9V7B0NX9KHeWg6B4Hg_RkeiFv2TQyrjs,1402
|
|
20
20
|
nucliadb_models/synonyms.py,sha256=qXTPHfspMgw22hCjAOdFOIoUsRZ7Ju3JW-Lw9Nz4VaI,942
|
|
21
21
|
nucliadb_models/text.py,sha256=RHN55PzQjyC0ghbf0r5GvVjTbFUTWzEDSCCkHkgnfig,3491
|
|
@@ -27,7 +27,7 @@ nucliadb_models/writer.py,sha256=OLtCGmicpVf56pXi2_myTAvStpnaBKKOVNtZzHkKKtw,847
|
|
|
27
27
|
nucliadb_models/internal/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
|
28
28
|
nucliadb_models/internal/predict.py,sha256=5rgUPrH_98gerySOZ-TR2PX_qzCGF1_8VxyOu3bGhis,2281
|
|
29
29
|
nucliadb_models/internal/shards.py,sha256=uZLsMkYWrJDHq3xy_w7snSeV2X3aDBuht9GC_MG3sKc,1976
|
|
30
|
-
nucliadb_models-6.2.1.
|
|
31
|
-
nucliadb_models-6.2.1.
|
|
32
|
-
nucliadb_models-6.2.1.
|
|
33
|
-
nucliadb_models-6.2.1.
|
|
30
|
+
nucliadb_models-6.2.1.post3296.dist-info/METADATA,sha256=j1BZa3ihNChOx03sVZsKHUeo1O_7XtRvKLMmLLu1zMY,759
|
|
31
|
+
nucliadb_models-6.2.1.post3296.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
32
|
+
nucliadb_models-6.2.1.post3296.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
|
|
33
|
+
nucliadb_models-6.2.1.post3296.dist-info/RECORD,,
|
|
File without changes
|
{nucliadb_models-6.2.1.post3277.dist-info → nucliadb_models-6.2.1.post3296.dist-info}/top_level.txt
RENAMED
|
File without changes
|