pub struct HttpRerankerConfig {
pub base_url: String,
pub model: String,
pub http: HttpSettings,
}Expand description
Configuration of a /rerank endpoint (Cohere, Jina, Voyage, vLLM, TEI…).
Fields§
§base_url: StringAPI root, e.g. https://api.cohere.com/v2 or https://api.jina.ai/v1.
model: String§http: HttpSettingsTrait Implementations§
Source§impl Clone for HttpRerankerConfig
impl Clone for HttpRerankerConfig
Source§impl Debug for HttpRerankerConfig
impl Debug for HttpRerankerConfig
Source§impl<'de> Deserialize<'de> for HttpRerankerConfig
impl<'de> Deserialize<'de> for HttpRerankerConfig
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 HttpRerankerConfig
impl PartialEq for HttpRerankerConfig
Source§impl Serialize for HttpRerankerConfig
impl Serialize for HttpRerankerConfig
impl StructuralPartialEq for HttpRerankerConfig
Auto Trait Implementations§
impl Forget for HttpRerankerConfig
impl Freeze for HttpRerankerConfig
impl Move for HttpRerankerConfig
impl RefUnwindSafe for HttpRerankerConfig
impl Send for HttpRerankerConfig
impl Sync for HttpRerankerConfig
impl Unpin for HttpRerankerConfig
impl UnsafeUnpin for HttpRerankerConfig
impl UnwindSafe for HttpRerankerConfig
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