kodexa 7.0.11146689394__py3-none-any.whl → 7.0.11214821080__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.
- kodexa/model/objects.py +39 -4
- {kodexa-7.0.11146689394.dist-info → kodexa-7.0.11214821080.dist-info}/METADATA +1 -1
- {kodexa-7.0.11146689394.dist-info → kodexa-7.0.11214821080.dist-info}/RECORD +5 -5
- {kodexa-7.0.11146689394.dist-info → kodexa-7.0.11214821080.dist-info}/LICENSE +0 -0
- {kodexa-7.0.11146689394.dist-info → kodexa-7.0.11214821080.dist-info}/WHEEL +0 -0
kodexa/model/objects.py
CHANGED
@@ -4410,6 +4410,12 @@ class UserSelection(BaseModel):
|
|
4410
4410
|
line_uuid: Optional[str] = Field(None, alias="lineUuid")
|
4411
4411
|
|
4412
4412
|
|
4413
|
+
class GuidanceRelationEmbedding(BaseModel):
|
4414
|
+
relation: Optional[str] = None
|
4415
|
+
model_id: Optional[str] = Field(None, alias="modelId")
|
4416
|
+
embedding: Optional[List[float]] = None
|
4417
|
+
|
4418
|
+
|
4413
4419
|
class Guidance(BaseModel):
|
4414
4420
|
id: Optional[str] = Field(None, description="The ID of the guidance")
|
4415
4421
|
name: Optional[str] = None
|
@@ -4421,7 +4427,7 @@ class Guidance(BaseModel):
|
|
4421
4427
|
document_name: Optional[str] = Field(None, alias="documentName")
|
4422
4428
|
document_page: Optional[int] = Field(None, alias="documentPage")
|
4423
4429
|
guidance_text: Optional[str] = Field(None, alias="guidanceText")
|
4424
|
-
|
4430
|
+
relation_embeddings: Optional[List[GuidanceRelationEmbedding]] = Field([], alias="relationEmbeddings")
|
4425
4431
|
summary: Optional[str] = None
|
4426
4432
|
guidance_response: Optional[Dict[str, Any]] = Field(None, alias="guidanceResponse")
|
4427
4433
|
active: Optional[bool] = True
|
@@ -4430,7 +4436,7 @@ class Guidance(BaseModel):
|
|
4430
4436
|
priority: Optional[int] = 1
|
4431
4437
|
user_instructions: Optional[str] = Field(None, alias="userInstructions")
|
4432
4438
|
user_instructions_properties: Optional[Dict[str, Any]] = Field(None, alias="userInstructionsProperties")
|
4433
|
-
|
4439
|
+
user_id: Optional[str] = Field(None, alias="userId")
|
4434
4440
|
created: Optional[StandardDateTime] = None
|
4435
4441
|
updated: Optional[StandardDateTime] = None
|
4436
4442
|
user_selection: Optional[List[UserSelection]] = Field(None, alias="userSelection")
|
@@ -4438,11 +4444,40 @@ class Guidance(BaseModel):
|
|
4438
4444
|
guidance_options: Optional[List[Option]] = Field(None, alias="guidanceOptions")
|
4439
4445
|
|
4440
4446
|
|
4447
|
+
class GuidanceEmbeddingType(Enum):
|
4448
|
+
SUMMARY = "SUMMARY"
|
4449
|
+
PAGE = "PAGE"
|
4450
|
+
CONTENT_NODE = "CONTENT_NODE"
|
4451
|
+
TFIDF = "TFIDF"
|
4452
|
+
|
4453
|
+
class GuidanceSetStorage(BaseModel):
|
4454
|
+
model_config = ConfigDict(
|
4455
|
+
populate_by_name=True,
|
4456
|
+
use_enum_values=True,
|
4457
|
+
arbitrary_types_allowed=True,
|
4458
|
+
protected_namespaces=("model_config",),
|
4459
|
+
)
|
4460
|
+
|
4461
|
+
embedding_model_id: Optional[str] = Field(None, alias="embeddingModelId")
|
4462
|
+
embedding_types: List[GuidanceEmbeddingType] = Field(default_factory=list, alias="embeddingTypes")
|
4463
|
+
|
4441
4464
|
class GuidanceSet(ExtensionPackProvided):
|
4442
4465
|
"""
|
4443
|
-
|
4466
|
+
A guidance set is a list of guidance objects that can be applied to a taxonomy
|
4444
4467
|
"""
|
4445
|
-
|
4468
|
+
model_config = ConfigDict(
|
4469
|
+
populate_by_name=True,
|
4470
|
+
use_enum_values=True,
|
4471
|
+
arbitrary_types_allowed=True,
|
4472
|
+
protected_namespaces=("model_config",),
|
4473
|
+
)
|
4474
|
+
|
4475
|
+
active_store: bool = Field(False, alias="activeStore", description="If true, allows guidance to be stored through the API")
|
4476
|
+
storage: GuidanceSetStorage = Field(default_factory=GuidanceSetStorage)
|
4477
|
+
guidance: List[Guidance] = Field(default_factory=list, description="The guidance in the set")
|
4478
|
+
|
4479
|
+
def get_type(self) -> str:
|
4480
|
+
return "guidance"
|
4446
4481
|
|
4447
4482
|
|
4448
4483
|
class PageGuidanceSet(BaseModel):
|
@@ -12,7 +12,7 @@ kodexa/model/entities/check_response.py,sha256=eqBHxO6G2OAziL3p9bHGI-oiPkAG82H6C
|
|
12
12
|
kodexa/model/entities/product.py,sha256=ZDpHuBE_9FJ-klnkyBvTfPwYOqBkM1wraZMtHqNA8FQ,3526
|
13
13
|
kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
|
14
14
|
kodexa/model/model.py,sha256=Ay3X9rsoJaUdG51WysSDPp2iy_cnz4eEYJgWdC25uio,118058
|
15
|
-
kodexa/model/objects.py,sha256=
|
15
|
+
kodexa/model/objects.py,sha256=xeKKfmpIpVvbIHSo5MH57G_idSz0rOkL6w146Sfamao,180747
|
16
16
|
kodexa/model/persistence.py,sha256=w4WGS_qH1iowH8-ZMawZBZ2RFW3bNvmFy5fgSwr6VmQ,66198
|
17
17
|
kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
|
18
18
|
kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
|
@@ -42,7 +42,7 @@ kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,
|
|
42
42
|
kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
|
43
43
|
kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
44
|
kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
|
45
|
-
kodexa-7.0.
|
46
|
-
kodexa-7.0.
|
47
|
-
kodexa-7.0.
|
48
|
-
kodexa-7.0.
|
45
|
+
kodexa-7.0.11214821080.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
46
|
+
kodexa-7.0.11214821080.dist-info/METADATA,sha256=wzfbAi4vLGBhPx640g63HvfUzVZkCp86-08PlTzYORc,3529
|
47
|
+
kodexa-7.0.11214821080.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
48
|
+
kodexa-7.0.11214821080.dist-info/RECORD,,
|
File without changes
|
File without changes
|