Changes
This commit is contained in:
@@ -82,10 +82,15 @@ class ReferenceCheck
|
||||
|
||||
$llm = new LLMService();
|
||||
$llmResult = $llm->checkReference($contentA, $contentB);
|
||||
$isMatch = !empty($llmResult['is_match']);
|
||||
$confidence = $llm->enforceReferenceCheckConfidence(
|
||||
isset($llmResult['confidence']) ? $llmResult['confidence'] : 0,
|
||||
$isMatch
|
||||
);
|
||||
|
||||
Db::name('article_reference_check_result')->where('id', $checkId)->update([
|
||||
'is_match' => !empty($llmResult['is_match']) ? 1 : 0,
|
||||
'confidence' => $llmResult['confidence'],
|
||||
'is_match' => $isMatch ? 1 : 0,
|
||||
'confidence' => $confidence,
|
||||
'reason' => $llmResult['reason'],
|
||||
'status' => 1,
|
||||
'error_msg' => '',
|
||||
|
||||
Reference in New Issue
Block a user