Spaces:
Sleeping
Sleeping
Update rag.py
Browse files
rag.py
CHANGED
@@ -40,7 +40,7 @@ class FinancialChatbot:
|
|
40 |
]
|
41 |
|
42 |
# Relevance threshold
|
43 |
-
self.min_similarity_threshold = 0.
|
44 |
|
45 |
def moderate_query(self, query):
|
46 |
"""Check if the query contains inappropriate words."""
|
|
|
40 |
]
|
41 |
|
42 |
# Relevance threshold
|
43 |
+
self.min_similarity_threshold = 0.7
|
44 |
|
45 |
def moderate_query(self, query):
|
46 |
"""Check if the query contains inappropriate words."""
|