Fix typo
All checks were successful
Build and Push NLP Docker Image / build (push) Successful in 2m35s
All checks were successful
Build and Push NLP Docker Image / build (push) Successful in 2m35s
This commit is contained in:
parent
6e1aadb2a7
commit
cc0b442f3d
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user