kodexa 7.4.412519737422__py3-none-any.whl → 7.4.412520153494__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 CHANGED
@@ -4504,11 +4504,7 @@ class PageTaxonomy(BaseModel):
4504
4504
  last: Optional[bool] = None
4505
4505
  empty: Optional[bool] = None
4506
4506
 
4507
-
4508
4507
  class GuidanceTagResult(BaseModel):
4509
- """
4510
-
4511
- """
4512
4508
  value: Optional[str] = None
4513
4509
  line_uuid: Optional[str] = Field(None, alias="lineUuid")
4514
4510
 
@@ -4519,7 +4515,6 @@ class UserSelection(BaseModel):
4519
4515
 
4520
4516
 
4521
4517
  class GuidanceRelationEmbedding(BaseModel):
4522
-
4523
4518
  model_config = ConfigDict(
4524
4519
  populate_by_name=True,
4525
4520
  use_enum_values=True,
@@ -4533,7 +4528,10 @@ class GuidanceRelationEmbedding(BaseModel):
4533
4528
 
4534
4529
 
4535
4530
  class Guidance(BaseModel):
4536
- id: Optional[str] = Field(None, description="The ID of the guidance")
4531
+ """
4532
+ A guidance is a set of instructions and examples to guide taxonomies and extraction
4533
+ """
4534
+ id: Optional[str] = Field(None)
4537
4535
  name: Optional[str] = None
4538
4536
  guidance_type: Optional[str] = Field(None, alias="guidanceType")
4539
4537
  guidance_key: Optional[str] = Field(None, alias="guidanceKey")
@@ -4543,13 +4541,13 @@ class Guidance(BaseModel):
4543
4541
  document_name: Optional[str] = Field(None, alias="documentName")
4544
4542
  document_page: Optional[int] = Field(None, alias="documentPage")
4545
4543
  guidance_text: Optional[str] = Field(None, alias="guidanceText")
4546
- relation_embeddings: Optional[List[GuidanceRelationEmbedding]] = Field([], alias="relationEmbeddings")
4544
+ relation_embeddings: Optional[List[GuidanceRelationEmbedding]] = Field(None, alias="relationEmbeddings")
4547
4545
  summary: Optional[str] = None
4548
4546
  guidance_response: Optional[Dict[str, Any]] = Field(None, alias="guidanceResponse")
4549
- active: Optional[bool] = True
4547
+ active: bool = True
4550
4548
  applicable_tags: Optional[List[str]] = Field(None, alias="applicableTags")
4551
4549
  required_tags: Optional[List[str]] = Field(None, alias="requiredTags")
4552
- priority: Optional[int] = 1
4550
+ priority: int = 1
4553
4551
  user_instructions: Optional[str] = Field(None, alias="userInstructions")
4554
4552
  user_instructions_properties: Optional[Dict[str, Any]] = Field(None, alias="userInstructionsProperties")
4555
4553
  user_id: Optional[str] = Field(None, alias="userId")
@@ -4567,16 +4565,10 @@ class GuidanceEmbeddingType(Enum):
4567
4565
 
4568
4566
 
4569
4567
  class GuidanceSetStorage(BaseModel):
4570
- model_config = ConfigDict(
4571
- populate_by_name=True,
4572
- use_enum_values=True,
4573
- arbitrary_types_allowed=True,
4574
- protected_namespaces=("model_config",),
4575
- )
4576
-
4568
+ embedding_model_id: Optional[str] = Field(None, alias="embeddingModelId")
4577
4569
  summarize_model_id: Optional[str] = Field(None, alias="summarizeModelId")
4570
+ use_custom_summarize_prompt: Optional[bool] = Field(None, alias="useCustomSummarizePrompt")
4578
4571
  summarize_prompt: Optional[str] = Field(None, alias="summarizePrompt")
4579
- embedding_model_id: Optional[str] = Field(None, alias="embeddingModelId")
4580
4572
  embedding_types: Optional[List[GuidanceEmbeddingType]] = Field(None, alias="embeddingTypes")
4581
4573
 
4582
4574
 
@@ -4591,10 +4583,9 @@ class GuidanceSet(ExtensionPackProvided):
4591
4583
  protected_namespaces=("model_config",),
4592
4584
  )
4593
4585
 
4594
- active_store: bool = Field(False, alias="activeStore",
4595
- description="If true, allows guidance to be stored through the API")
4586
+ active_store: bool = False
4596
4587
  storage: GuidanceSetStorage = Field(default_factory=GuidanceSetStorage)
4597
- guidance: List[Guidance] = Field(default_factory=list, description="The guidance in the set")
4588
+ guidance: Optional[List[Guidance]] = None
4598
4589
 
4599
4590
  def get_type(self) -> str:
4600
4591
  return "guidance"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.4.412519737422
3
+ Version: 7.4.412520153494
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -13,7 +13,7 @@ kodexa/model/entities/product.py,sha256=LVOICrF8qCqeURt1y4nnghE-T5ZtEnHMAMILjL1A
13
13
  kodexa/model/entities/product_group.py,sha256=540fRGyUf34h1BzAN1DiWu6rGgvaj3xDFhZ2k-RvSFY,3617
14
14
  kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
15
15
  kodexa/model/model.py,sha256=qh1YUew3UgtjU0t4fAwSXYYuzQjXTOZWZkafyFp_w8M,118801
16
- kodexa/model/objects.py,sha256=o7pTbEjewPhT5cQX5rkY9mndQf3RPH4t3GWBqXrrdX8,185118
16
+ kodexa/model/objects.py,sha256=XjAV-61keJwRfIbDl-5nOY76u9UJ6Hc2vExjAPzBS80,184878
17
17
  kodexa/model/persistence.py,sha256=HX_uIkGs8bqHwqyE5wB2qMlGIG5ZnjuTu7xMdvKhEzA,72033
18
18
  kodexa/model/utils.py,sha256=6R-3rFiW9irBwj0Mq5yhp7EDXkNUFaeFhr3bWmnlW4g,2961
19
19
  kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
@@ -44,7 +44,7 @@ kodexa/testing/test_utils.py,sha256=v44p__gE7ia67W7WeHN2HBFCWSCUrCZt7G4xBNCmwf8,
44
44
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
45
45
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
46
  kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
47
- kodexa-7.4.412519737422.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
48
- kodexa-7.4.412519737422.dist-info/METADATA,sha256=dwsYj5RvHSjXXNYNk1c1WGCnmD5s3JlM6mnO1U_tDi8,3528
49
- kodexa-7.4.412519737422.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
50
- kodexa-7.4.412519737422.dist-info/RECORD,,
47
+ kodexa-7.4.412520153494.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
48
+ kodexa-7.4.412520153494.dist-info/METADATA,sha256=DGRqLlSt8MJp4Hw0mcYlPoU9Gb6t2U1ZfbTwkSo5bTk,3528
49
+ kodexa-7.4.412520153494.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
50
+ kodexa-7.4.412520153494.dist-info/RECORD,,