Azure/azure-openai-samples

Issue fundamentals/langchain/03_semantic_search_redis.ipynb

Opened this issue · 0 comments

Hello
azure-openai-samples/fundamentals/langchain/03_semantic_search_redis.ipynb Below is the script that I have executed and getting a below error message.

**from AzureOpenAIUtil.Embedding import DocumentEmbedding
import os
from dotenv import load_dotenv
load_dotenv()

doc_emb = DocumentEmbedding(document_embedding_deployment_name=os.getenv('DOCUMENT_MODEL_NAME'),
query_embedding_deployment_name=os.getenv('QUERY_MODEL_NAME'),
summerization_deployment_name=os.getenv('DEPLOYMENT_NAME'))
doc_emb.load_documents('data/extracted/')**
Error

APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='myopenairesource2.openai.azure.com', port=443): Max retries exceeded with url: //openai/deployments/curie-search-doc/embeddings?api-version=2022-12-01 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))....