Update app.py
Browse files
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 |
-
|
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(
|