pub struct CreateVectorStoreRequestBuilder { /* private fields */ }
Expand description
Builder for CreateVectorStoreRequest
.
Implementations§
Source§impl CreateVectorStoreRequestBuilder
impl CreateVectorStoreRequestBuilder
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 CreateVectorStoreRequestBuilder
impl Clone for CreateVectorStoreRequestBuilder
Source§fn clone(&self) -> CreateVectorStoreRequestBuilder
fn clone(&self) -> CreateVectorStoreRequestBuilder
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 moreAuto Trait Implementations§
impl Freeze for CreateVectorStoreRequestBuilder
impl RefUnwindSafe for CreateVectorStoreRequestBuilder
impl Send for CreateVectorStoreRequestBuilder
impl Sync for CreateVectorStoreRequestBuilder
impl Unpin for CreateVectorStoreRequestBuilder
impl UnwindSafe for CreateVectorStoreRequestBuilder
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