/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { llmVectorStoresCancelFileBatch } from "../funcs/llmVectorStoresCancelFileBatch.js"; import { llmVectorStoresCreate } from "../funcs/llmVectorStoresCreate.js"; import { llmVectorStoresCreateFile } from "../funcs/llmVectorStoresCreateFile.js"; import { llmVectorStoresCreateFileBatch } from "../funcs/llmVectorStoresCreateFileBatch.js"; import { llmVectorStoresDelete } from "../funcs/llmVectorStoresDelete.js"; import { llmVectorStoresDeleteFile } from "../funcs/llmVectorStoresDeleteFile.js"; import { llmVectorStoresGet } from "../funcs/llmVectorStoresGet.js"; import { llmVectorStoresGetFile } from "../funcs/llmVectorStoresGetFile.js"; import { llmVectorStoresGetFileBatch } from "../funcs/llmVectorStoresGetFileBatch.js"; import { llmVectorStoresGetFileContent } from "../funcs/llmVectorStoresGetFileContent.js"; import { llmVectorStoresList } from "../funcs/llmVectorStoresList.js"; import { llmVectorStoresListFiles } from "../funcs/llmVectorStoresListFiles.js"; import { llmVectorStoresListFilesInBatch } from "../funcs/llmVectorStoresListFilesInBatch.js"; import { llmVectorStoresSearch } from "../funcs/llmVectorStoresSearch.js"; import { llmVectorStoresUpdate } from "../funcs/llmVectorStoresUpdate.js"; import { llmVectorStoresUpdateFile } from "../funcs/llmVectorStoresUpdateFile.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class VectorStores extends ClientSDK { /** * Create a vector store * * @remarks * Creates a new vector store for storing and searching through document embeddings. */ async create( request: operations.CreateVectorStoreRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresCreate( this, request, options, )); } /** * List vector stores * * @remarks * Retrieves a paginated list of all vector stores for the authenticated user. */ async list( request: operations.ListVectorStoresRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresList( this, request, options, )); } /** * Retrieve a vector store * * @remarks * Retrieves a vector store by its ID. */ async get( request: operations.GetVectorStoreRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresGet( this, request, options, )); } /** * Modify a vector store * * @remarks * Updates the properties of an existing vector store. */ async update( request: operations.ModifyVectorStoreRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresUpdate( this, request, options, )); } /** * Delete a vector store * * @remarks * Permanently deletes a vector store and its associated embeddings. */ async delete( request: operations.DeleteVectorStoreRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresDelete( this, request, options, )); } /** * Search a vector store * * @remarks * Performs semantic search within a vector store to find the most relevant document chunks for a query. */ async search( request: operations.SearchVectorStoreRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresSearch( this, request, options, )); } /** * Add a file to a vector store * * @remarks * Adds a file to a vector store for semantic search indexing. */ async createFile( request: operations.CreateVectorStoreFileRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresCreateFile( this, request, options, )); } /** * List files in a vector store * * @remarks * Retrieves a paginated list of all files in a specific vector store. */ async listFiles( request: operations.ListVectorStoreFilesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresListFiles( this, request, options, )); } /** * Retrieve a vector store file * * @remarks * Retrieves detailed information about a specific file within a vector store. */ async getFile( request: operations.GetVectorStoreFileRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresGetFile( this, request, options, )); } /** * Update file attributes * * @remarks * Updates the metadata attributes attached to a file within a vector store. */ async updateFile( request: operations.UpdateVectorStoreFileAttributesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresUpdateFile( this, request, options, )); } /** * Remove file from vector store * * @remarks * Removes a file from a vector store and deletes its associated embeddings. */ async deleteFile( request: operations.DeleteVectorStoreFileRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresDeleteFile( this, request, options, )); } /** * Retrieve parsed file content * * @remarks * Retrieves the complete parsed contents of a file within a vector store. */ async getFileContent( request: operations.GetVectorStoreFileContentRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresGetFileContent( this, request, options, )); } /** * Batch add multiple files to vector store * * @remarks * Adds multiple files to a vector store in a single batch operation. */ async createFileBatch( request: operations.CreateVectorStoreFileBatchRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresCreateFileBatch( this, request, options, )); } /** * Retrieve file batch status * * @remarks * Retrieves the status of a specific file batch operation within a vector store. */ async getFileBatch( request: operations.GetVectorStoreFileBatchRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresGetFileBatch( this, request, options, )); } /** * Cancel batch file processing * * @remarks * Cancels an in-progress file batch operation. */ async cancelFileBatch( request: operations.CancelVectorStoreFileBatchRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresCancelFileBatch( this, request, options, )); } /** * List files in a batch * * @remarks * Retrieves a paginated list of all files within a specific batch operation. */ async listFilesInBatch( request: operations.ListVectorStoreFilesInBatchRequest, options?: RequestOptions, ): Promise { return unwrapAsync(llmVectorStoresListFilesInBatch( this, request, options, )); } }