john0isaac / rag-semantic-kernel-mongodb-vcore

A sample for implementing retrieval augmented generation using Azure Open AI to generate embeddings, Azure Cosmos DB for MongoDB vCore to perform vector search, and semantic kernel.
https://techcommunity.microsoft.com/t5/educator-developer-blog/build-rag-chat-application-using-azure-openai-and-cosmos-db-for/ba-p/4055852
MIT License
27 stars 44 forks source link

while Creating or Updating Azure Cosmos DB for MongoDB #31

Closed Vamshikrishnaredd closed 3 days ago

Vamshikrishnaredd commented 1 month ago

I added my ip address while establishing the connection with cosmos db, im getting this error.

ServerSelectionTimeoutError: c.openai.mongocluster.cosmos.azure.com:10260: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 668ec79a9b6681b1b76ebffe, topology_type: Unknown, servers: [<ServerDescription ('c.openai.mongocluster.cosmos.azure.com', 10260) server_type: Unknown, rtt: None, error=NetworkTimeout('c.openai.mongocluster.cosmos.azure.com:10260: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>

This is the code. image

john0isaac commented 1 month ago

Your external ip changes every couple of hours. This error indicates that Azure Cosmos DB for MongoDB doesn't know your ip address hence the connection times out trying to connect.

please go to the networking page and add the ip again.

Vamshikrishnaredd commented 1 month ago

I'm still getting same error. Could you please help me out