Rabbitt-AI commited on
Commit
e2f8d20
·
verified ·
1 Parent(s): 3936b6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -406,7 +406,8 @@ def create_vector_db_and_annoy_index(pdf_path, vector_db_path, annoy_index_path)
406
  def chatbot_interface(file, user_query, response_style):
407
  vector_db_path = "vector_db.pkl"
408
  annoy_index_path = "vector_index.ann"
409
-
 
410
  store_embeddings_in_vector_db(file.name, 'vector_db.pkl', 'vector_index.ann', chunk_size, overlap)
411
 
412
  chatbot = MistralRAGChatbot(vector_db_path, annoy_index_path)
 
406
  def chatbot_interface(file, user_query, response_style):
407
  vector_db_path = "vector_db.pkl"
408
  annoy_index_path = "vector_index.ann"
409
+ chunk_size = 2048
410
+ overlap = 200
411
  store_embeddings_in_vector_db(file.name, 'vector_db.pkl', 'vector_index.ann', chunk_size, overlap)
412
 
413
  chatbot = MistralRAGChatbot(vector_db_path, annoy_index_path)