Artificial Intelligence Forum
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

No deployment found for OpenAI Embedding

usinha3
Advisor
Advisor
0 Likes
3,815

I have a foundation model gpt-4o deployed.

However when using text-embedding-ada-002 for RAG vector embedding, I keep running into the issue 

ValueError: No deployment found with: deployment.model_name == text-embedding-ada-002

I have an orchestration deployed as well, but still the same issue. 

Any help will be appreciated

 

 

I have a foundation model gpt-4o deployed.

However when using text-embedding-ada-002 for RAG vector embedding, I keep running into the issue 

ValueError: No deployment found with: deployment.model_name == text-embedding-ada-002

I have an orchestration deployed as well, but still the same issue. 

Any help will be appreciated

 

 

5 REPLIES 5
Read only

DKK
Product and Topic Expert
Product and Topic Expert
3,355

Hi,

Unfortunately, it is no supported today. Please choose either "Text Embedding 3 Large" or "Text Embedding 3 Small",

 

Thanks

Read only

0 Likes
3,343

Hi, I still get the same error even with the new embedding model. 

For a simple function like this, 

usinha3_0-1758634916632.png

 

 

I keep getting 

usinha3_1-1758634947487.png

 

Regardless of the model used. 

 

Read only

DKK
Product and Topic Expert
Product and Topic Expert
0 Likes
3,339

Hi, can you try the following?

from gen_ai_hub.proxy.langchain.init_models import init_embedding_model
from Parameters import * #define the connection to your aicore
import os

os.environ["AICORE_CLIENT_ID"] = AICORE_CLIENT_ID
os.environ["AICORE_CLIENT_SECRET"] = AICORE_CLIENT_SECRET
os.environ["AICORE_AUTH_URL"] = AICORE_AUTH_URL
os.environ["AICORE_RESOURCE_GROUP"] = AICORE_RESOURCE_GROUP
os.environ["AICORE_BASE_URL"] = AICORE_BASE_URL

embeddings = init_embedding_model('text-embedding-3-large')
embeddings

 

If this is now working, try please 

pip install "generative-ai-hub-sdk[all]"

 

Read only

mcodricis
Associate
Associate
0 Likes
3,228

HI, the Deployment ID error appears for any model when running LLM requests through the SAP SDK or orchestration. Supplying the Deployment ID at a low-level request prevents the error. In the generative-ai-hub-sdk package, the current deployment is no longer determined automatically, and the methods do not include a parameter to specify it.

Read only

Vitaliy-R
Developer Advocate
Developer Advocate
0 Likes
3,192

Have you deployed any of the embedding models? Because in your post, you mentioned only deploying gpt-4o.