Azure / azure-openai-samples

Azure OpenAI Samples is a collection of code samples illustrating how to use Azure Open AI in creating AI solution for various use cases across industries. This repository is mained by a community of volunters. We welcomed your contributions.
MIT License
524 stars 373 forks source link

Issue fundamentals/langchain/03_semantic_search_redis.ipynb #15

Open Mvenkateswaramma opened 1 year ago

Mvenkateswaramma commented 1 year ago

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'))....