Skip to content

Commit

Permalink
fix(generation): ensure that the fallback intent is only usede when '…
Browse files Browse the repository at this point in the history
…embedding_only' is False
  • Loading branch information
Pouyanpi committed Sep 9, 2024
1 parent 5e64f3a commit b5b04a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nemoguardrails/actions/v2_x/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ async def _collect_user_intent_and_examples(
elif (
self.config.rails.dialog.user_messages.embeddings_only
and self.config.rails.dialog.user_messages.embeddings_only_fallback_intent
and not embedding_only
):
intent = (
self.config.rails.dialog.user_messages.embeddings_only_fallback_intent
Expand Down

0 comments on commit b5b04a5

Please sign in to comment.