pub struct FileSearchTool {
pub vector_store_ids: Vec<String>,
pub max_num_results: Option<u64>,
pub ranking_options: Option<RankingOptions>,
pub filters: Option<Filters>,
}
Expand description
A tool that searches for relevant content from uploaded files. Learn more about the file search tool.
Fields§
§vector_store_ids: Vec<String>
The IDs of the vector stores to search.
max_num_results: Option<u64>
The maximum number of results to return. This number should be between 1 and 50 inclusive.
ranking_options: Option<RankingOptions>
Ranking options for search.
filters: Option<Filters>
A filter to apply.
Implementations§
Source§impl FileSearchTool
impl FileSearchTool
Sourcepub fn builder() -> FileSearchToolBuilder<((), (), (), ())>
pub fn builder() -> FileSearchToolBuilder<((), (), (), ())>
Create a builder for building FileSearchTool
.
On the builder, call .vector_store_ids(...)
, .max_num_results(...)
(optional), .ranking_options(...)
(optional), .filters(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of FileSearchTool
.
Trait Implementations§
Source§impl Clone for FileSearchTool
impl Clone for FileSearchTool
Source§fn clone(&self) -> FileSearchTool
fn clone(&self) -> FileSearchTool
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 FileSearchTool
impl Debug for FileSearchTool
Source§impl<'de> Deserialize<'de> for FileSearchTool
impl<'de> Deserialize<'de> for FileSearchTool
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FileSearchTool
impl PartialEq for FileSearchTool
Source§impl Serialize for FileSearchTool
impl Serialize for FileSearchTool
impl StructuralPartialEq for FileSearchTool
Auto Trait Implementations§
impl Freeze for FileSearchTool
impl RefUnwindSafe for FileSearchTool
impl Send for FileSearchTool
impl Sync for FileSearchTool
impl Unpin for FileSearchTool
impl UnwindSafe for FileSearchTool
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