The error appears to stem from a missing or misconfigured connection to Azure AI Services within your Azure AI Foundry project. The system does not recognize ConnectionType.AZURE_AI_SERVICES, which suggests that this connection type may not be available in the Azure AI Projects SDK.
To resolve this, first, review the available connection types in the Azure AI Projects SDK documentation to confirm whether an alternative type, such as ConnectionType.AI_SERVICES, should be used. Additionally, verify that your connection string stored in the environment variable AIPROJECT_CONNECTION_STRING is correctly set and pointing to the appropriate Azure AI Foundry project.
If the issue still persists, ensure that your project has an active connection to Azure AI Services by navigating to Management Center → Connections → New Connection in the Azure AI Foundry Portal. Proper error handling is also crucial—your ResourceNotFoundError exception should provide more insights into why the embeddings service is not found.
Lastly, check for any SDK updates or changes that might have impacted connection types or embedding client creation.
I Hope this helps. Let me know if you need further clarification!
If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thank you!