List and add files to Azure OpenAI vector store

This example pipeline demonstrates how to list files from Azure OpenAI and add those files to the specfied Azure OpenAI vector store.

  1. Configure the Azure OpenAI List Files Snap to retrieve a list of all the files associated with your Azure OpenAI account based on the file purpose assistants.

    On validation, the Snap displays the detailed retrieved files list.

    Azure OpenAI List Files Snap configuration Azure OpenAI List Files Snap output

    Azure OpenAI List Files Snap configuration


    Azure OpenAI List Files Snap output

  2. Configure the OpenAI Add Vector Store File Snap with $id in the File ID field to add all the files from the retrieved list provided by the upstream Snap to the specified vector store vs_4LlrKl1EI3vCNd6NMBZBk48Z:AssistantVectorStore_78471. You can also configure the chunking strategy to optimize how to divide the file into segments for indexing efficiency.
    On validation, the Snap displays the details of all the files added to the vector store, converting it into a collection of vectors.
    Tip: To add specific files, use this Snap individually.
    OpenAI Add Vector Store File Snap configuration OpenAI Add Vector Store File Snap output

    OpenAI Add Vector Store File Snap configuration


    OpenAI Add Vector Store File Snap output

    Tip: After adding the vector store file, you can use AgentCreator for various machine learning tasks, such as searching for similar vectors, retrieving relevant information, or integrating it into applications that leverage vector embeddings.
To successfully reuse pipelines:
  1. Download and import the pipeline in to the SnapLogic Platform.
  2. Configure Snap accounts, as applicable.
  3. Provide pipeline parameters, as applicable.