Fix typo
This commit is contained in:
parent
1532326719
commit
6e1aadb2a7
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user