wylum commited on
Commit
0e24e61
·
verified ·
1 Parent(s): 9839b54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -247,7 +247,9 @@ def build_qa_chain(collection_name, vector_db, file: str):
247
  #list_file_path = [x.name for x in list_file_obj if x is not None]
248
  list_file_path = file.name
249
  # Create collection_name for vector database
250
- collection_name = create_collection_name(list_file_path[0])
 
 
251
 
252
  vector_db = Chroma.from_documents(
253
  documents=chunked_documents,
 
247
  #list_file_path = [x.name for x in list_file_obj if x is not None]
248
  list_file_path = file.name
249
  # Create collection_name for vector database
250
+ # vincent fix InvalidCollectionException 20250212
251
+ #collection_name = create_collection_name(list_file_path[0])
252
+ collection_name = file.name
253
 
254
  vector_db = Chroma.from_documents(
255
  documents=chunked_documents,