Поделиться через


VectorStoreFilesOperations interface

Интерфейс, представляющий операции VectorStoreFiles.

Свойства

create

Создайте файл векторного хранилища, прикрепив его к векторному хранилищу.

createAndPoll

Создайте файл векторного хранилища, вложив файл в векторное хранилище и опрос.

delete

Удаляет файл векторного хранилища. При этом удаляется связь между файлом и магазином (а не удаляется сам файл).

get

Извлекает файл векторного хранилища.

list

Возвращает список файлов векторного хранилища.

Сведения о свойстве

create

Создайте файл векторного хранилища, прикрепив его к векторному хранилищу.

create: (vectorStoreId: string, options?: VectorStoreFilesCreateVectorStoreFileOptionalParams) => Promise<VectorStoreFile>

Значение свойства

(vectorStoreId: string, options?: VectorStoreFilesCreateVectorStoreFileOptionalParams) => Promise<VectorStoreFile>

createAndPoll

Создайте файл векторного хранилища, вложив файл в векторное хранилище и опрос.

createAndPoll: (vectorStoreId: string, options?: VectorStoreFilesCreateVectorStoreFileOptionalParams) => PollerLike<OperationState<VectorStoreFile>, VectorStoreFile>

Значение свойства

(vectorStoreId: string, options?: VectorStoreFilesCreateVectorStoreFileOptionalParams) => PollerLike<OperationState<VectorStoreFile>, VectorStoreFile>

delete

Удаляет файл векторного хранилища. При этом удаляется связь между файлом и магазином (а не удаляется сам файл).

delete: (vectorStoreId: string, fileId: string, options?: VectorStoreFilesDeleteVectorStoreFileOptionalParams) => Promise<VectorStoreFileDeletionStatus>

Значение свойства

(vectorStoreId: string, fileId: string, options?: VectorStoreFilesDeleteVectorStoreFileOptionalParams) => Promise<VectorStoreFileDeletionStatus>

get

Извлекает файл векторного хранилища.

get: (vectorStoreId: string, fileId: string, options?: VectorStoreFilesGetVectorStoreFileOptionalParams) => Promise<VectorStoreFile>

Значение свойства

(vectorStoreId: string, fileId: string, options?: VectorStoreFilesGetVectorStoreFileOptionalParams) => Promise<VectorStoreFile>

list

Возвращает список файлов векторного хранилища.

list: (vectorStoreId: string, options?: VectorStoreFilesListVectorStoreFilesOptionalParams) => PagedAsyncIterableIterator<VectorStoreFile, VectorStoreFile[], PageSettings>

Значение свойства

(vectorStoreId: string, options?: VectorStoreFilesListVectorStoreFilesOptionalParams) => PagedAsyncIterableIterator<VectorStoreFile, VectorStoreFile[], PageSettings>