Open jyravi opened 1 year ago
Hey @jyravi :wave:! Thank you so much for reporting the issue/feature request :rotating_light:. Someone from SynapseML Team will be looking to triage this issue soon. We appreciate your patience.
Hi @jyravi Could you please double check if your SynpaseML version is v0.11.0? You could check by running:
import synapse.ml.core
synapse.ml.core.__spark_package_version__
Hello @serena-ruan , I'm facing the same error while using a fresh Synapse Spark Cluster I just deployed. By running the command you gave to @jyravi I got '0.10.1-69-84f5b579-SNAPSHOT' . So it seems that the SynapseML version currently deployed on Synapse Resource is not up-to-date to fully use Azure Open AI 👎
Support request ID | 2304070050000707
This seems to be still a problem "ImportError: cannot import name 'OpenAIEmbedding' from 'synapse.ml.cognitive' (/home/trusted-service-user/cluster-env/env/lib/python3.10/site-packages/synapse/ml/cognitive/init.py)"
SynapseML version
0.11.0
System information
Describe the problem
I am trying to create OpenAI Embedding as shown in the notebook - CognitiveServices - OpenAI.ipynb.
Code to reproduce issue
from synapse.ml.cognitive import OpenAIEmbedding
embedding = ( OpenAIEmbedding() .setSubscriptionKey(key) .setDeploymentName(deployment_name_embeddings) .setUrl("https://{}.openai.azure.com/".format(service_name)) .setTextCol("combined") .setErrorCol("error") .setOutputCol("embeddings") )
Other info / logs
No response
What component(s) does this bug affect?
area/cognitive
: Cognitive projectarea/core
: Core projectarea/deep-learning
: DeepLearning projectarea/lightgbm
: Lightgbm projectarea/opencv
: Opencv projectarea/vw
: VW projectarea/website
: Websitearea/build
: Project build systemarea/notebooks
: Samples under notebooks folderarea/docker
: Docker usagearea/models
: models related issueWhat language(s) does this bug affect?
language/scala
: Scala source codelanguage/python
: Pyspark APIslanguage/r
: R APIslanguage/csharp
: .NET APIslanguage/new
: Proposals for new client languagesWhat integration(s) does this bug affect?
integrations/synapse
: Azure Synapse integrationsintegrations/azureml
: Azure ML integrationsintegrations/databricks
: Databricks integrations