REST APIs for Vector Stores used at Azure OpenAI assistants

Mohamed Hussein 300 Reputation points
2024-11-13T13:45:51.72+00:00

Hi,

Are there any REST APIs for Vector Stores mentioned at Azure OpenAI assistants file uploading , or it's only accessible via SDK?

On another note, may you clarify this part the docs?

https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/file-search?tabs=python#vector-stores

User's image

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

Accepted answer
  1. VasaviLankipalle-MSFT 18,296 Reputation points
    2024-11-13T18:58:32.3966667+00:00

    Hello @Mohamed Hussein , Thanks for using Microsoft Q&A Platform.

    Regarding your first question, Azure OpenAI assistants does provide REST APIs for interacting with Vector Stores. You can use these APIs to perform operations such as creating, searching, and managing files.

    To your second question about the documentation, if you choose not to use the SDKs, you can still retrieve the file ingestion operation by directly accessing the vector_store object via the REST API. Where, a vector store is a collection of processed files can be used by the file_search tool. Specifically, you can check the file_counts property of the vector_store object. This property provides information about the number of files that are currently being processed.

    The REST APIs for Vector Stores is explained detailed in the following documentation: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference-preview#create---vector-store

    For example, to Create - Vector Store File:Create a vector store file by attaching a File to a vector store.

    POST https://{endpoint}/openai/vector_stores/{vector_store_id}/files?api-version=2024-10-01-preview
    

    In the request body you can add this parameter file_id:User's image

    I hope this helps.

    Regards,

    Vasavi

    1 person found this answer helpful.
    0 comments No comments

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.