Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -187,7 +187,7 @@ def build_qa_chain(collection_name, vector_db, file: str):
|
|
| 187 |
embeddings = AzureOpenAIEmbeddings(
|
| 188 |
model="text-embedding-ada-002",
|
| 189 |
# dimensions: Optional[int] = None, # Can specify dimensions with new text-embedding-3 models
|
| 190 |
-
azure_endpoint=, # If not provided, will read env variable AZURE_OPENAI_ENDPOINT
|
| 191 |
openai_api_key=api_key, # Can provide an API key directly. If missing read env variable AZURE_OPENAI_API_KEY
|
| 192 |
#openai_api_version="2023-05-15", # If not provided, will read env variable AZURE_OPENAI_API_VERSION
|
| 193 |
openai_api_version="2023-05-15", # If not provided, will read env variable AZURE_OPENAI_API_VERSION
|
|
|
|
| 187 |
embeddings = AzureOpenAIEmbeddings(
|
| 188 |
model="text-embedding-ada-002",
|
| 189 |
# dimensions: Optional[int] = None, # Can specify dimensions with new text-embedding-3 models
|
| 190 |
+
azure_endpoint=azure_endpt , # If not provided, will read env variable AZURE_OPENAI_ENDPOINT
|
| 191 |
openai_api_key=api_key, # Can provide an API key directly. If missing read env variable AZURE_OPENAI_API_KEY
|
| 192 |
#openai_api_version="2023-05-15", # If not provided, will read env variable AZURE_OPENAI_API_VERSION
|
| 193 |
openai_api_version="2023-05-15", # If not provided, will read env variable AZURE_OPENAI_API_VERSION
|