nucliadb-models 6.3.4.post3817__py3-none-any.whl → 6.3.4.post3821__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 +3 -3
- {nucliadb_models-6.3.4.post3817.dist-info → nucliadb_models-6.3.4.post3821.dist-info}/METADATA +1 -1
- {nucliadb_models-6.3.4.post3817.dist-info → nucliadb_models-6.3.4.post3821.dist-info}/RECORD +5 -5
- {nucliadb_models-6.3.4.post3817.dist-info → nucliadb_models-6.3.4.post3821.dist-info}/WHEEL +0 -0
- {nucliadb_models-6.3.4.post3817.dist-info → nucliadb_models-6.3.4.post3821.dist-info}/top_level.txt +0 -0
|
@@ -31,20 +31,20 @@ from nucliadb_models.security import RequestSecurity
|
|
|
31
31
|
## Models for graph nodes and relations
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class NodeMatchKindName(str, Enum):
|
|
35
35
|
EXACT = "exact"
|
|
36
36
|
FUZZY = "fuzzy"
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
class GraphNode(BaseModel, extra="forbid"):
|
|
40
40
|
value: Optional[str] = None
|
|
41
|
-
match:
|
|
41
|
+
match: NodeMatchKindName = NodeMatchKindName.EXACT
|
|
42
42
|
type: Optional[RelationNodeType] = RelationNodeType.ENTITY
|
|
43
43
|
group: Optional[str] = None
|
|
44
44
|
|
|
45
45
|
@model_validator(mode="after")
|
|
46
46
|
def validate_fuzzy_usage(self) -> Self:
|
|
47
|
-
if self.match ==
|
|
47
|
+
if self.match == NodeMatchKindName.FUZZY:
|
|
48
48
|
if self.value is None:
|
|
49
49
|
raise ValueError("Fuzzy match can only be used if a node value is provided")
|
|
50
50
|
else:
|
{nucliadb_models-6.3.4.post3817.dist-info → nucliadb_models-6.3.4.post3821.dist-info}/RECORD
RENAMED
|
@@ -27,12 +27,12 @@ nucliadb_models/vectorsets.py,sha256=avxwO9JPX2k5sCniuNhh2MSsP7aRNvf1eB1-h3-Ju1o
|
|
|
27
27
|
nucliadb_models/writer.py,sha256=OLtCGmicpVf56pXi2_myTAvStpnaBKKOVNtZzHkKKtw,8472
|
|
28
28
|
nucliadb_models/agents/ingestion.py,sha256=mV7gV6VpYg4VNpc59K3275TMUJZbUzeUnp3SZzO5uxY,3137
|
|
29
29
|
nucliadb_models/graph/__init__.py,sha256=eu_1UK7GlBQRg5IRUqJkxVMcBxkXeqX4SZL6fuvwjDg,897
|
|
30
|
-
nucliadb_models/graph/requests.py,sha256=
|
|
30
|
+
nucliadb_models/graph/requests.py,sha256=3orvG3NOQJinBigxQZvnzoAJY-X9pDpQuaf5Brz1eNI,7544
|
|
31
31
|
nucliadb_models/graph/responses.py,sha256=3aimAHrd3YW1BXHU_ZXRoidlccRtkCcREkfCNotqgIQ,1651
|
|
32
32
|
nucliadb_models/internal/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
|
33
33
|
nucliadb_models/internal/predict.py,sha256=5rgUPrH_98gerySOZ-TR2PX_qzCGF1_8VxyOu3bGhis,2281
|
|
34
34
|
nucliadb_models/internal/shards.py,sha256=uZLsMkYWrJDHq3xy_w7snSeV2X3aDBuht9GC_MG3sKc,1976
|
|
35
|
-
nucliadb_models-6.3.4.
|
|
36
|
-
nucliadb_models-6.3.4.
|
|
37
|
-
nucliadb_models-6.3.4.
|
|
38
|
-
nucliadb_models-6.3.4.
|
|
35
|
+
nucliadb_models-6.3.4.post3821.dist-info/METADATA,sha256=huTllTstKWsW4bSBpcXBcDg74BkNeiUy4jusOyNQqR0,759
|
|
36
|
+
nucliadb_models-6.3.4.post3821.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
37
|
+
nucliadb_models-6.3.4.post3821.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
|
|
38
|
+
nucliadb_models-6.3.4.post3821.dist-info/RECORD,,
|
|
File without changes
|
{nucliadb_models-6.3.4.post3817.dist-info → nucliadb_models-6.3.4.post3821.dist-info}/top_level.txt
RENAMED
|
File without changes
|