Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def invoke(openai_api_key, use_rag, prompt):
|
|
67 |
chunk_size = 1500)
|
68 |
splits = text_splitter.split_documents(docs)
|
69 |
vector_db = Chroma.from_documents(documents = splits,
|
70 |
-
embedding = OpenAIEmbeddings(),
|
71 |
persist_directory = CHROMA_DIR)
|
72 |
# Document retrieval
|
73 |
vector_db = Chroma(embedding_function = OpenAIEmbeddings(),
|
|
|
67 |
chunk_size = 1500)
|
68 |
splits = text_splitter.split_documents(docs)
|
69 |
vector_db = Chroma.from_documents(documents = splits,
|
70 |
+
embedding = OpenAIEmbeddings(disallowed_special = ()),
|
71 |
persist_directory = CHROMA_DIR)
|
72 |
# Document retrieval
|
73 |
vector_db = Chroma(embedding_function = OpenAIEmbeddings(),
|