Unknown model: text-embedding-ada-002 and no such file and directory C:\\clientsearch\\assets\\intent_mapping.prompty

Working on Azure AI project 0 Reputation points
2025-02-17T11:55:48.9566667+00:00

S C:\clientsearch> python create_search_index.py

🗑️ Found existing index named 'example-index', and deleted it

Traceback (most recent call last):

https://learn.microsoft.com/en-gb/azure/ai-studio/tutorials/copilot-sdk-build-rag

Unclear and wrong instructions

File "C:\clientsearch\create_search_index.py", line 199, in <module>

create_index_from_csv(index_name, csv_file)

File "C:\clientsearch\create_search_index.py", line 169, in create_index_from_csv

docs = create_docs_from_csv(path=csv_file, content_column="description", model=os.environ["EMBEDDINGS_MODEL"])

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\clientsearch\create_search_index.py", line 141, in create_docs_from_csv

emb = embeddings.embed(input=content, model=model)

      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\sanja\AppData\Local\Programs\Python\Python312\Lib\site-packages\azure\core\tracing\decorator.py", line 105, in wrapper_use_tracer

return func(*args, **kwargs)

       ^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\sanja\AppData\Local\Programs\Python\Python312\Lib\site-packages\azure\ai\inference_patch.py", line 1035, in embed

raise HttpResponseError(response=response)

azure.core.exceptions.HttpResponseError: (unknown_model) Unknown model: text-embedding-ada-002

Code: unknown_model

Message: Unknown model: text-embedding-ada-002

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,195 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.