Can I use the Azure OpenAI Assistants API v1 retrieval tool?

Srdjan Brkic 20 Reputation points
2024-08-17T20:35:30.5633333+00:00

I am migrating from OpenAI API to Azure OpenAI API and I plan to migrate to Assistants V1 from this source: https://learn.microsoft.com/en-us/azure/ai-services/openai/whats-new#assistants-api-public-preview (api version of 2024-02-15-preview, Feb. release).

According to the spec files, I can pass retrieval as a tool. However, when I call create and run thread, I get an error message that states:

Azure OpenAI Retrieval v1 tool is not supported in favor of the more advanced v2 file_search tool. Please use file_search in the v2 api.

The error is odd since I am using v1 (spec file found here). My question is, am I able to use retrieval tool somehow since I haven't moved to v2 yet?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
{count} votes

Accepted answer
  1. AshokPeddakotla-MSFT 35,971 Reputation points Moderator
    2024-08-19T09:21:58.26+00:00

    Srdjan Brkic Greetings & Welcome to Microsoft Q&A forum!

    The error is odd since I am using v1 (spec file found here). My question is, am I able to use retrieval tool somehow since I haven't moved to v2 yet?

    The "retrieval" tool type was in the v1 of the OpenAI Assistants API, but did not receive support in Azure OpenAI. Please use the "file_search" tool type in v2 instead, which is supported in AOAI.

    Reference: https://github.com/Azure/azure-sdk-for-js/issues/28550

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.