vb
October 22, 2024, 8:42am
4
Take a look at the write-up below.
I am under the impression that you need to change the way how you are processing the PDF file before passing it to the assistant.
You’ll primarily be working with the file management features of the OpenAI API to upload, and delete. You will use the vector Stores to create an searchable index of those files, and you will need to attach one or multiple vector stores to your assistant.
1. Uploading Files
Prepare the File: Ensure your file is in a supported format and contains the data you want your assistant to use.
Use the OpenAI API to Upload the File:import OpenAI from "openai";
const openai = new OpenAI({ apiKey: "you…