Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ class AdvancedRAGChatbot:
|
|
22 |
os.environ["TAVILY_API_KEY"] = tavily_api_key
|
23 |
|
24 |
# Correct Tavily Client initialization
|
25 |
-
self.tavily_client = tavily.
|
26 |
-
|
27 |
# NLP Components
|
28 |
self.embeddings = self._configure_embeddings(embedding_model)
|
29 |
self.semantic_model = SentenceTransformer('all-MiniLM-L6-v2')
|
@@ -35,6 +35,7 @@ class AdvancedRAGChatbot:
|
|
35 |
|
36 |
# Conversation Memory
|
37 |
self.memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
|
|
|
38 |
|
39 |
def _configure_embeddings(self, model_name: str):
|
40 |
"""Configure embeddings with normalization"""
|
|
|
22 |
os.environ["TAVILY_API_KEY"] = tavily_api_key
|
23 |
|
24 |
# Correct Tavily Client initialization
|
25 |
+
self.tavily_client = tavily.TavilyClient(tavily_api_key)
|
26 |
+
|
27 |
# NLP Components
|
28 |
self.embeddings = self._configure_embeddings(embedding_model)
|
29 |
self.semantic_model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
|
35 |
|
36 |
# Conversation Memory
|
37 |
self.memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
|
38 |
+
|
39 |
|
40 |
def _configure_embeddings(self, model_name: str):
|
41 |
"""Configure embeddings with normalization"""
|