Spaces:
Sleeping
Sleeping
Update pages/2_🧠_context_aware_chatbot.py
Browse files
pages/2_🧠_context_aware_chatbot.py
CHANGED
|
@@ -44,7 +44,7 @@ class ContextChatbot:
|
|
| 44 |
model="text-embedding-ada-002",
|
| 45 |
)
|
| 46 |
all_splits = text_splitter.split_documents(documents)
|
| 47 |
-
vectorstore = Chroma.from_documents(documents=all_splits, embedding=openai_embedding_model
|
| 48 |
prompt_template = """
|
| 49 |
Use the following pieces of context to answer the user's question about sickle cell.
|
| 50 |
If you don't know the answer, just say that you don't know, don't try to make up an answer.
|
|
|
|
| 44 |
model="text-embedding-ada-002",
|
| 45 |
)
|
| 46 |
all_splits = text_splitter.split_documents(documents)
|
| 47 |
+
vectorstore = Chroma.from_documents(documents=all_splits, embedding=openai_embedding_model, persist_directory='Vectorstore/')
|
| 48 |
prompt_template = """
|
| 49 |
Use the following pieces of context to answer the user's question about sickle cell.
|
| 50 |
If you don't know the answer, just say that you don't know, don't try to make up an answer.
|