We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1398f5 commit 862b749Copy full SHA for 862b749
nemoguardrails/eval/evaluate_topical.py
@@ -69,6 +69,7 @@ def _initialize_rails_app(self):
69
70
def _initialize_embeddings_model(self):
71
"""Instantiate a sentence transformer if we use a similarity check for canonical forms."""
72
+ self._model = None
73
if self.similarity_threshold > 0:
74
self._model = SentenceTransformer("all-MiniLM-L6-v2")
75
0 commit comments