pub struct RerankOptions {
pub query: String,
pub documents: RerankDocuments,
pub top_n: Option<usize>,
pub provider_options: ProviderOptions,
pub headers: Headers,
pub cancellation: CancellationToken,
}Expand description
Options for a rerank call.
Fields§
§query: StringThe query.
documents: RerankDocumentsDocuments to rank.
top_n: Option<usize>Return only the top n results.
provider_options: ProviderOptionsProvider-specific options keyed by provider name.
headers: HeadersAdditional request headers.
cancellation: CancellationTokenCancellation token.
Implementations§
Source§impl RerankOptions
impl RerankOptions
Sourcepub fn new(query: impl Into<String>, documents: RerankDocuments) -> Self
pub fn new(query: impl Into<String>, documents: RerankDocuments) -> Self
Creates options for query over documents.
Trait Implementations§
Source§impl Clone for RerankOptions
impl Clone for RerankOptions
Source§fn clone(&self) -> RerankOptions
fn clone(&self) -> RerankOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RerankOptions
impl RefUnwindSafe for RerankOptions
impl Send for RerankOptions
impl Sync for RerankOptions
impl Unpin for RerankOptions
impl UnsafeUnpin for RerankOptions
impl UnwindSafe for RerankOptions
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