Skip to content

Commit 5abb50d

Browse files
rename rebuild_embeddings to rebuild
1 parent 4342524 commit 5abb50d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def trigger_rebuild():
116116

117117
print("Rebuilding embeddings...")
118118
try:
119-
app.rag_system.rebuild_embeddings()
119+
app.rag_system.rebuild()
120120
except Exception as e:
121121
print(f"Error rebuilding embeddings: {str(e)}")
122122
return jsonify({"error": "Error rebuilding embeddings", "details": str(e)}), 500

app/rag_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def clear_conversation_history(self):
177177
self.conversation_history = []
178178
print("Conversation history cleared.")
179179

180-
def rebuild_embeddings(self):
180+
def rebuild(self):
181181
"""
182182
Rebuild the embeddings for the knowledge base. This should be called whenever the knowledge base is updated.
183183
"""

0 commit comments

Comments
 (0)