pub struct CreateVectorStoreRequestArgs { /* private fields */ }
Expand description
Builder for CreateVectorStoreRequest
.
Implementations§
Source§impl CreateVectorStoreRequestArgs
impl CreateVectorStoreRequestArgs
Sourcepub fn file_ids<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn file_ids<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
A list of File IDs that the vector store should use. Useful for tools like file_search
that can access files.
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the vector store.
Sourcepub fn expires_after<VALUE: Into<VectorStoreExpirationAfter>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn expires_after<VALUE: Into<VectorStoreExpirationAfter>>( &mut self, value: VALUE, ) -> &mut Self
The expiration policy for a vector store.
Sourcepub fn chunking_strategy<VALUE: Into<VectorStoreChunkingStrategy>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn chunking_strategy<VALUE: Into<VectorStoreChunkingStrategy>>( &mut self, value: VALUE, ) -> &mut Self
The chunking strategy used to chunk the file(s). If not set, will use the auto
strategy. Only applicable if file_ids
is non-empty.
Sourcepub fn metadata<VALUE: Into<HashMap<String, Value>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn metadata<VALUE: Into<HashMap<String, Value>>>( &mut self, value: VALUE, ) -> &mut Self
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.
Sourcepub fn build(&self) -> Result<CreateVectorStoreRequest, OpenAIError>
pub fn build(&self) -> Result<CreateVectorStoreRequest, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateVectorStoreRequestArgs
impl Clone for CreateVectorStoreRequestArgs
Source§fn clone(&self) -> CreateVectorStoreRequestArgs
fn clone(&self) -> CreateVectorStoreRequestArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateVectorStoreRequestArgs
impl Debug for CreateVectorStoreRequestArgs
Auto Trait Implementations§
impl Freeze for CreateVectorStoreRequestArgs
impl RefUnwindSafe for CreateVectorStoreRequestArgs
impl Send for CreateVectorStoreRequestArgs
impl Sync for CreateVectorStoreRequestArgs
impl Unpin for CreateVectorStoreRequestArgs
impl UnwindSafe for CreateVectorStoreRequestArgs
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