pub struct FileSearchBuilder { /* private fields */ }
Expand description
Builder for FileSearch
.
Implementations§
Source§impl FileSearchBuilder
impl FileSearchBuilder
Sourcepub fn vector_store_ids<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn vector_store_ids<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
The IDs of the vector stores to search.
Sourcepub fn max_num_results<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn max_num_results<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
The maximum number of results to return. This number should be between 1 and 50 inclusive.
Sourcepub fn ranking_options<VALUE: Into<RankingOptions>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn ranking_options<VALUE: Into<RankingOptions>>( &mut self, value: VALUE, ) -> &mut Self
Ranking options for search.
Sourcepub fn build(&self) -> Result<FileSearch, OpenAIError>
pub fn build(&self) -> Result<FileSearch, OpenAIError>
Trait Implementations§
Source§impl Clone for FileSearchBuilder
impl Clone for FileSearchBuilder
Source§fn clone(&self) -> FileSearchBuilder
fn clone(&self) -> FileSearchBuilder
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 FileSearchBuilder
impl RefUnwindSafe for FileSearchBuilder
impl Send for FileSearchBuilder
impl Sync for FileSearchBuilder
impl Unpin for FileSearchBuilder
impl UnwindSafe for FileSearchBuilder
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