This commit is contained in:
Apher 2026-07-23 05:35:56 +00:00
parent 1532326719
commit 6e1aadb2a7

View File

@ -97,7 +97,7 @@ async function classifyIntent(text) {
let bestArgumentScore = 0.5
if (best.arguments) {
if (bestIntent.argument) {
for (const argument of best.arguments) {
const argumentEmbedding = await embed(argument);
const argumentScore = cosineSimilarity(inputEmbedding, argumentEmbedding);