import { Files } from "https://deno.land/x/openai@v4.52.7/resources/beta/vector-stores/mod.ts";
import { Files } from "https://deno.land/x/openai@v4.52.7/resources/beta/vector-stores/mod.ts";
Methods
Create a vector store file by attaching a File to a vector store.
Attach a file to the given vector store and wait for it to be processed.
Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the delete file endpoint.
Returns a list of vector store files.
Wait for the vector store file to finish processing.
Note: this will return even if the file failed to process, you need to check file.last_error and file.status to handle these cases
Retrieves a vector store file.
Upload a file to the files
API and then attach it to the given vector store.
Note the file will be asynchronously processed (you can use the alternative polling helper method to wait for processing to complete).
Add a file to a vector store and poll until processing is complete.