ArturG9 commited on
Commit
0420d34
1 Parent(s): a8965b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -75,9 +75,7 @@ def create_retriever_from_chroma(vectorstore_path="docs/chroma/", search_type='m
75
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=chunk_size, chunk_overlap=chunk_overlap)
76
  split_docs = text_splitter.split_documents(documents)
77
 
78
- # Ensure the directory for storing vectorstore exists
79
- if not os.path.exists(vectorstore_path):
80
- os.makedirs(vectorstore_path)
81
 
82
  # Create the vectorstore
83
  vectorstore = Chroma.from_documents(
 
75
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=chunk_size, chunk_overlap=chunk_overlap)
76
  split_docs = text_splitter.split_documents(documents)
77
 
78
+
 
 
79
 
80
  # Create the vectorstore
81
  vectorstore = Chroma.from_documents(