Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=10)
|
|
39 |
docs = splitter.split_documents(docs)
|
40 |
|
41 |
# Convert the document chunks to embedding and save them to the vector store
|
42 |
-
vectorstore = Chroma.from_documents(docs, embedding=OpenAIEmbeddings(), persist_directory="./
|
43 |
vectorstore.persist()
|
44 |
|
45 |
chain = ConversationalRetrievalChain.from_llm(
|
|
|
39 |
docs = splitter.split_documents(docs)
|
40 |
|
41 |
# Convert the document chunks to embedding and save them to the vector store
|
42 |
+
vectorstore = Chroma.from_documents(docs, embedding=OpenAIEmbeddings(), persist_directory="./db")
|
43 |
vectorstore.persist()
|
44 |
|
45 |
chain = ConversationalRetrievalChain.from_llm(
|