Class VectorStoreFilesClient
java.lang.Object
io.github.stefanbratanov.jvm.openai.VectorStoreFilesClient
Vector store files represent files inside a vector store.
Based on Vector Store Files
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
-
Method Summary
Modifier and TypeMethodDescriptioncreateVectorStoreFile
(String vectorStoreId, CreateVectorStoreFileRequest request) Create a vector store file by attaching a File to a vector store.deleteVectorStoreFile
(String vectorStoreId, String fileId) Delete a vector store file.listVectorStoreFiles
(String vectorStoreId, PaginationQueryParameters paginationQueryParameters) Returns a list of vector store files.retrieveVectorStoreFile
(String vectorStoreId, String fileId) Retrieves a vector store file.
-
Method Details
-
createVectorStoreFile
public VectorStoreFile createVectorStoreFile(String vectorStoreId, CreateVectorStoreFileRequest request) Create a vector store file by attaching a File to a vector store.- Throws:
OpenAIException
- in case of API errors
-
listVectorStoreFiles
public VectorStoreFilesClient.PaginatedVectorStoreFiles listVectorStoreFiles(String vectorStoreId, PaginationQueryParameters paginationQueryParameters) Returns a list of vector store files.- Throws:
OpenAIException
- in case of API errors
-
retrieveVectorStoreFile
Retrieves a vector store file.- Throws:
OpenAIException
- in case of API errors
-
deleteVectorStoreFile
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.- Throws:
OpenAIException
- in case of API errors
-