BroBro87 commited on
Commit
f257e79
β€’
1 Parent(s): a7e50d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -42,6 +42,8 @@ def initialize_vector_store_index(data_path, service_context):
42
  # Load the index from a file
43
  with open('./index_file.pkl', 'rb') as f:
44
  index = pickle.load(f)
 
 
45
  return index
46
 
47
  def main():
 
42
  # Load the index from a file
43
  with open('./index_file.pkl', 'rb') as f:
44
  index = pickle.load(f)
45
+ index = VectorStoreIndex.from_documents(documents, service_context=service_context)
46
+
47
  return index
48
 
49
  def main():