Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def init_chromadb():
|
|
47 |
texts = text_splitter.split_documents(documents)
|
48 |
|
49 |
# Select which embeddings we want to use
|
50 |
-
|
51 |
|
52 |
# Create the vectorestore to use as the index
|
53 |
vectorstore = Chroma.from_documents(texts, embeddings, persist_directory=DB_DIR)
|
|
|
47 |
texts = text_splitter.split_documents(documents)
|
48 |
|
49 |
# Select which embeddings we want to use
|
50 |
+
embeddings = OpenAIEmbeddings()
|
51 |
|
52 |
# Create the vectorestore to use as the index
|
53 |
vectorstore = Chroma.from_documents(texts, embeddings, persist_directory=DB_DIR)
|