Fix typo
All checks were successful
Build and Push NLP Docker Image / build (push) Successful in 2m35s

This commit is contained in:
Apher 2026-07-23 05:41:16 +00:00
parent 6e1aadb2a7
commit cc0b442f3d

View File

@ -84,7 +84,7 @@ async function classifyIntent(text) {
const exampleEmbedding = await embed(example); const exampleEmbedding = await embed(example);
const intentScore = cosineSimilarity(inputEmbedding, exampleEmbedding); const intentScore = cosineSimilarity(inputEmbedding, exampleEmbedding);
if (intentScore > best.confidence) { if (intentScore > bestIntent.confidence) {
bestIntent = { bestIntent = {
name: intent.name, name: intent.name,
confidence: intentScore, confidence: intentScore,