import { FileBatches } from "https://deno.land/x/openai@v4.41.1/resources/beta/vector-stores/mod.ts";
import { FileBatches } from "https://deno.land/x/openai@v4.41.1/resources/beta/vector-stores/mod.ts";
Methods
cancel(): Core.APIPromise<VectorStoreFileBatch>
vectorStoreId: string,
batchId: string,
options?: Core.RequestOptions,
Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
create(): Core.APIPromise<VectorStoreFileBatch>
Create a vector store file batch.
createAndPoll(): Promise<VectorStoreFileBatch>
vectorStoreId: string,
body: FileBatchCreateParams,
options?: Core.RequestOptions & { pollIntervalMs?: number; },
Create a vector store batch and poll until all files have been processed.
listFiles(): Core.PagePromise<VectorStoreFilesPage, FilesAPI.VectorStoreFile>
vectorStoreId: string,
batchId: string,
query?: FileBatchListFilesParams,
options?: Core.RequestOptions,
Returns a list of vector store files in a batch.
listFiles(): Core.PagePromise<VectorStoreFilesPage, FilesAPI.VectorStoreFile>
vectorStoreId: string,
batchId: string,
options?: Core.RequestOptions,
poll(): Promise<VectorStoreFileBatch>
vectorStoreId: string,
batchId: string,
options?: Core.RequestOptions & { pollIntervalMs?: number; },
Wait for the given file batch to be processed.
Note: this will return even if one of the files failed to process, you need to check batch.file_counts.failed_count to handle this case.
retrieve(): Core.APIPromise<VectorStoreFileBatch>
vectorStoreId: string,
batchId: string,
options?: Core.RequestOptions,
Retrieves a vector store file batch.
uploadAndPoll(): Promise<VectorStoreFileBatch>
vectorStoreId: string,
unnamed 1: { files: Uploadable[]; fileIds?: string[]; },
options?: Core.RequestOptions & { pollIntervalMs?: number; maxConcurrency?: number; },
Uploads the given files concurrently and then creates a vector store file batch.
The concurrency limit is configurable using the maxConcurrency
parameter.