p43G
This commit is contained in:
@@ -781,6 +781,8 @@ final class PromptBuilderConfig
|
||||
}
|
||||
|
||||
$out = [];
|
||||
$genericPositiveContextTerms = $this->getMeasurementEvidenceGenericPositiveContextTerms();
|
||||
$genericNegativeContextTerms = $this->getMeasurementEvidenceGenericNegativeContextTerms();
|
||||
|
||||
foreach ($value as $item) {
|
||||
if (!is_array($item)) {
|
||||
@@ -799,8 +801,12 @@ final class PromptBuilderConfig
|
||||
'label' => $label,
|
||||
'request_terms' => $this->normalizeMixedStringList($item['request_terms'] ?? []),
|
||||
'positive_terms' => $this->normalizeMixedStringList($item['positive_terms'] ?? []),
|
||||
'positive_context_terms' => $this->normalizeMixedStringList($item['positive_context_terms'] ?? []),
|
||||
'negative_context_terms' => $this->normalizeMixedStringList($item['negative_context_terms'] ?? []),
|
||||
'positive_context_terms' => array_key_exists('positive_context_terms', $item)
|
||||
? $this->normalizeMixedStringList($item['positive_context_terms'])
|
||||
: $genericPositiveContextTerms,
|
||||
'negative_context_terms' => array_key_exists('negative_context_terms', $item)
|
||||
? $this->normalizeMixedStringList($item['negative_context_terms'])
|
||||
: $genericNegativeContextTerms,
|
||||
'non_equivalent_terms' => $this->normalizeMixedStringList($item['non_equivalent_terms'] ?? []),
|
||||
'safe_no_evidence_answer_de' => isset($item['safe_no_evidence_answer_de']) && is_scalar($item['safe_no_evidence_answer_de'])
|
||||
? trim((string) $item['safe_no_evidence_answer_de'])
|
||||
|
||||
Reference in New Issue
Block a user