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
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.
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.
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.
Auto Trait Implementations§
impl<'c, C> Freeze for VectorStoreFileBatches<'c, C>
impl<'c, C> !RefUnwindSafe for VectorStoreFileBatches<'c, C>
impl<'c, C> Send for VectorStoreFileBatches<'c, C>where
C: Sync,
impl<'c, C> Sync for VectorStoreFileBatches<'c, C>where
C: Sync,
impl<'c, C> Unpin for VectorStoreFileBatches<'c, C>
impl<'c, C> !UnwindSafe for VectorStoreFileBatches<'c, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more