naveenvenkatesh commited on
Commit
7f0c45d
·
verified ·
1 Parent(s): f8aecd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -97,7 +97,9 @@ class ChatDocumentQA:
97
  Returns:
98
  FAISS: Vector store created from the text chunks.
99
  """
100
- embeddings = OpenAIEmbeddings()
 
 
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