Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,9 @@ class ChatDocumentQA:
|
|
97 |
Returns:
|
98 |
FAISS: Vector store created from the text chunks.
|
99 |
"""
|
100 |
-
embeddings =
|
|
|
|
|
101 |
|
102 |
return FAISS.from_documents(documents=text_chunks, embedding=embeddings)
|
103 |
|
|
|
97 |
Returns:
|
98 |
FAISS: Vector store created from the text chunks.
|
99 |
"""
|
100 |
+
embeddings = AzureOpenAIEmbeddings(
|
101 |
+
azure_deployment="openai_embedding",
|
102 |
+
)
|
103 |
|
104 |
return FAISS.from_documents(documents=text_chunks, embedding=embeddings)
|
105 |
|