Skip to content

Commit 9da2b73

Browse files
authored
doc: update similarity threshold to 0.75 and note (#770)
1 parent 021eb88 commit 9da2b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/user_guides/configuration-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,13 +706,13 @@ rails:
706706
# Whether to use only the embeddings when interpreting the user's message
707707
embeddings_only: True
708708
# Use only the embeddings when the similarity is above the specified threshold.
709-
embeddings_only_similarity_threshold: 0.5
709+
embeddings_only_similarity_threshold: 0.75
710710
# When the fallback is set to None, if the similarity is below the threshold, the user intent is computed normally using the LLM.
711711
# When it is set to a string value, that string value will be used as the intent.
712712
embeddings_only_fallback_intent: None
713713
```
714714

715-
**IMPORTANT**: This is recommended only when enough examples are provided.
715+
**IMPORTANT**: This is recommended only when enough examples are provided. The threshold used here is 0.75, which triggers an LLM call for user intent generation if the similarity is below this value. If you encounter false positives, consider increasing the threshold to 0.8. Note that the threshold is model dependent.
716716

717717
## Exceptions
718718

0 commit comments

Comments
 (0)