alfraser commited on
Commit
1cb115b
·
1 Parent(s): 2022fec

Fixed the time.time bug here. Also a call to reset the Chroma DB

Browse files
Files changed (1) hide show
  1. src/training/train_rag.py +3 -3
src/training/train_rag.py CHANGED
@@ -71,7 +71,7 @@ def prepare_to_vectorise(args) -> chromadb.Client:
71
 
72
  # Now do possibly destructive setup
73
  if args.overwrite:
74
- empty_or_create_out_vector_store()
75
  elif need_to_copy_vector_store(args):
76
  copy_vector_store(args)
77
 
@@ -132,7 +132,7 @@ def train(args):
132
 
133
 
134
  if __name__ == "__main__":
135
- start = time.time()
136
  train(args)
137
- end = time.time()
138
  print(f"Training took {end-start:.2f} seconds")
 
71
 
72
  # Now do possibly destructive setup
73
  if args.overwrite:
74
+ empty_or_create_out_vector_store(args)
75
  elif need_to_copy_vector_store(args):
76
  copy_vector_store(args)
77
 
 
132
 
133
 
134
  if __name__ == "__main__":
135
+ start = time()
136
  train(args)
137
+ end = time()
138
  print(f"Training took {end-start:.2f} seconds")