kodexa 7.4.412519737422__tar.gz → 7.4.412520052926__tar.gz
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-7.4.412519737422 → kodexa-7.4.412520052926}/PKG-INFO +1 -1
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/objects.py +12 -21
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/pyproject.toml +1 -1
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/LICENSE +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/README.md +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/assistant/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/assistant/assistant.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/connectors/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/connectors/connectors.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/dataclasses/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/dataclasses/templates/llm_data_class.j2 +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/base.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/entities/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/entities/check_response.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/entities/product.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/entities/product_group.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/entities/product_subscription.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/model.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/persistence.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/utils.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/pipeline/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/pipeline/pipeline.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/platform/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/platform/client.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/platform/interaction.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/platform/kodexa.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/selectors/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/selectors/ast.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/selectors/core.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/selectors/lexrules.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/selectors/lextab.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/selectors/lextab.pyi +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/selectors/parserules.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/selectors/parserules.pyi +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/selectors/parsetab.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/selectors/parsetab.pyi +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/spatial/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/spatial/azure_models.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/spatial/bbox_common.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/spatial/table_form_common.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/steps/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/steps/common.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/testing/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/testing/test_components.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/testing/test_utils.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/training/__init__.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/training/train_utils.py +0 -0
- {kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/utils/__init__.py +0 -0
@@ -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
|
-
|
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(
|
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:
|
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:
|
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")
|
@@ -4560,23 +4558,17 @@ class Guidance(BaseModel):
|
|
4560
4558
|
guidance_options: Optional[List[Option]] = Field(None, alias="guidanceOptions")
|
4561
4559
|
|
4562
4560
|
|
4563
|
-
class GuidanceEmbeddingType(Enum):
|
4561
|
+
class GuidanceEmbeddingType(str, Enum):
|
4564
4562
|
SUMMARY = "SUMMARY"
|
4565
4563
|
CONTENT = "CONTENT"
|
4566
4564
|
TFIDF = "TFIDF"
|
4567
4565
|
|
4568
4566
|
|
4569
4567
|
class GuidanceSetStorage(BaseModel):
|
4570
|
-
|
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 =
|
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] =
|
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
|
[tool.poetry]
|
2
2
|
name = "kodexa"
|
3
|
-
version = "7.4.
|
3
|
+
version = "7.4.412520052926"
|
4
4
|
description = "Python SDK for the Kodexa Platform"
|
5
5
|
authors = ["Austin Redenbaugh <austin@kodexa.com>", "Philip Dodds <philip@kodexa.com>", "Romar Cablao <rcablao@kodexa.com>", "Amadea Paula Dodds <amadeapaula@kodexa.com>"]
|
6
6
|
readme = "README.md"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/dataclasses/templates/llm_data_class.j2
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{kodexa-7.4.412519737422 → kodexa-7.4.412520052926}/kodexa/model/entities/product_subscription.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|