File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ def trigger_rebuild():
116
116
117
117
print ("Rebuilding embeddings..." )
118
118
try :
119
- app .rag_system .rebuild_embeddings ()
119
+ app .rag_system .rebuild ()
120
120
except Exception as e :
121
121
print (f"Error rebuilding embeddings: { str (e )} " )
122
122
return jsonify ({"error" : "Error rebuilding embeddings" , "details" : str (e )}), 500
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ def clear_conversation_history(self):
177
177
self .conversation_history = []
178
178
print ("Conversation history cleared." )
179
179
180
- def rebuild_embeddings (self ):
180
+ def rebuild (self ):
181
181
"""
182
182
Rebuild the embeddings for the knowledge base. This should be called whenever the knowledge base is updated.
183
183
"""
You can’t perform that action at this time.
0 commit comments