pub struct VectorStoreFileBatches<'c, C: Config> {
pub vector_store_id: String,
/* private fields */
}
Expand description
Vector store file batches represent operations to add multiple files to a vector store.
Related guide: File Search
Fields§
§vector_store_id: String
Implementations§
Source§impl<'c, C: Config> VectorStoreFileBatches<'c, C>
impl<'c, C: Config> VectorStoreFileBatches<'c, C>
pub fn new(client: &'c Client<C>, vector_store_id: &str) -> Self
Sourcepub async fn create(
&self,
request: CreateVectorStoreFileBatchRequest,
) -> Result<VectorStoreFileBatchObject, OpenAIError>
pub async fn create( &self, request: CreateVectorStoreFileBatchRequest, ) -> Result<VectorStoreFileBatchObject, OpenAIError>
Create vector store file batch Create vector store file batch
Sourcepub async fn create_byot<T0: Serialize, R: DeserializeOwned>(
&self,
request: T0,
) -> Result<R, OpenAIError>
pub async fn create_byot<T0: Serialize, R: DeserializeOwned>( &self, request: T0, ) -> Result<R, OpenAIError>
Create vector store file batch
Sourcepub async fn retrieve(
&self,
batch_id: &str,
) -> Result<VectorStoreFileBatchObject, OpenAIError>
pub async fn retrieve( &self, batch_id: &str, ) -> Result<VectorStoreFileBatchObject, OpenAIError>
Retrieves a vector store file batch. Retrieves a vector store file batch.
Sourcepub async fn retrieve_byot<T0: Display, R: DeserializeOwned>(
&self,
batch_id: T0,
) -> Result<R, OpenAIError>
pub async fn retrieve_byot<T0: Display, R: DeserializeOwned>( &self, batch_id: T0, ) -> Result<R, OpenAIError>
Retrieves a vector store file batch.
Sourcepub async fn cancel(
&self,
batch_id: &str,
) -> Result<VectorStoreFileBatchObject, OpenAIError>
pub async fn cancel( &self, batch_id: &str, ) -> Result<VectorStoreFileBatchObject, OpenAIError>
Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
Sourcepub async fn cancel_byot<T0: Display, R: DeserializeOwned>(
&self,
batch_id: T0,
) -> Result<R, OpenAIError>
pub async fn cancel_byot<T0: Display, R: DeserializeOwned>( &self, batch_id: T0, ) -> Result<R, OpenAIError>
Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.
Sourcepub async fn list<Q>(
&self,
batch_id: &str,
query: &Q,
) -> Result<ListVectorStoreFilesResponse, OpenAIError>
pub async fn list<Q>( &self, batch_id: &str, query: &Q, ) -> Result<ListVectorStoreFilesResponse, OpenAIError>
Returns a list of vector store files in a batch. Returns a list of vector store files in a batch.
Sourcepub async fn list_byot<T0: Display, T1: Serialize, R: DeserializeOwned>(
&self,
batch_id: T0,
query: T1,
) -> Result<R, OpenAIError>
pub async fn list_byot<T0: Display, T1: Serialize, R: DeserializeOwned>( &self, batch_id: T0, query: T1, ) -> Result<R, OpenAIError>
Returns a list of vector store files in a batch.