Upload multiple files into OpenAI

This example pipeline demonstrates how to upload multiple files to OpenAI storage.

  1. Configure the Multi File Reader Snap to pass your input documents to be uploaded in OpenAI storage.
    Note:
    • In this example, we use the Multi File Reader Snap. However, you can replace the Multi File Reader Snap with any Snap of your choice with a binary output, such as the, Constant, File Reader, or S3 File Reader Snaps.
    • If you want to upload additional files, you can do so by clicking the add icon and upload.

    On validation, the Snap provides the two read documents in a binary stream to be used further.


    Multi File Reader Snap

  2. Configure the OpenAI Upload File Snap to specify the file purpose assistants and optionally provide a file name, or leave it blank for the Snap to automatically retrieve it from the input documents.
    On validation, the Snap displays a confirmation of the files uploaded along with its file ID and other details.
    OpenAI Upload File Snap Configuration OpenAI Upload File Snap Output

    OpenAI Upload File Snap Configuration


    OpenAI Upload File Snap Output

    Note: After uploading the file to OpenAI, you can index the file into a vector store using the OpenAI Add Vector Store File Snap to convert it into a collection of vectors, enabling efficient search and retrieval within the vector store. You can also use GenAI App Builder to integrate machine learning models.
To successfully reuse pipelines:
  1. Download and import the pipeline into SnapLogic Platform.
  2. Configure Snap accounts, as applicable.
  3. Provide pipeline parameters, as applicable.