Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -88,10 +88,10 @@ def get_vectorstore_from_url(url):
|
|
88 |
model_name=model, encode_kwargs=encode_kwargs, model_kwargs={"device": "cpu"}
|
89 |
)
|
90 |
# load from disk
|
91 |
-
vector_store = Chroma(persist_directory="/.cache/chroma_db", embedding_function=embeddings)
|
92 |
|
93 |
#vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
94 |
-
vector_store = Chroma.from_documents(document_chunks, embeddings, persist_directory="/.cache/chroma_db")
|
95 |
|
96 |
|
97 |
|
|
|
88 |
model_name=model, encode_kwargs=encode_kwargs, model_kwargs={"device": "cpu"}
|
89 |
)
|
90 |
# load from disk
|
91 |
+
vector_store = Chroma(persist_directory="/home/user/.cache/chroma_db", embedding_function=embeddings)
|
92 |
|
93 |
#vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
94 |
+
vector_store = Chroma.from_documents(document_chunks, embeddings, persist_directory="/home/user/.cache/chroma_db")
|
95 |
|
96 |
|
97 |
|