Починить проверку цепочки поставщик товар покупатель
This commit is contained in:
+7
-1
@@ -114,7 +114,10 @@ function applyAddressLlmSemanticHintsToExtraction(extraction, semanticHintsInput
|
||||
}
|
||||
semanticFrame.selected_object_scope_detected = true;
|
||||
}
|
||||
if (semanticHints.scope_target_kind === "organization" && scopeTargetText) {
|
||||
const protectsInventoryDocumentaryChainSupplierAnchor = warnings.includes("supplier_anchor_derived_for_inventory_documentary_chain");
|
||||
if (semanticHints.scope_target_kind === "organization" &&
|
||||
scopeTargetText &&
|
||||
!protectsInventoryDocumentaryChainSupplierAnchor) {
|
||||
extractedFilters.organization = scopeTargetText;
|
||||
pushWarning(warnings, "organization_from_llm_semantics");
|
||||
if (toNonEmptyString(extractedFilters.warehouse)) {
|
||||
@@ -125,6 +128,9 @@ function applyAddressLlmSemanticHintsToExtraction(extraction, semanticHintsInput
|
||||
semanticFrame.anchor_kind = "organization";
|
||||
semanticFrame.anchor_value = scopeTargetText;
|
||||
}
|
||||
else if (semanticHints.scope_target_kind === "organization" && scopeTargetText) {
|
||||
pushWarning(warnings, "organization_llm_semantics_ignored_for_inventory_documentary_chain");
|
||||
}
|
||||
if (semanticHints.scope_target_kind === "warehouse" && scopeTargetText) {
|
||||
extractedFilters.warehouse = scopeTargetText;
|
||||
pushWarning(warnings, "warehouse_from_llm_semantics");
|
||||
|
||||
Reference in New Issue
Block a user