pub struct LlmReranker { /* private fields */ }Expand description
LLM reranking over the OpenAI-compatible /chat/completions protocol.
Implementations§
Source§impl LlmReranker
impl LlmReranker
pub fn openai_compatible(base_url: &str, model: &str, api_key: &str) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LlmReranker
impl !UnwindSafe for LlmReranker
impl Freeze for LlmReranker
impl Send for LlmReranker
impl Sync for LlmReranker
impl Unpin for LlmReranker
impl UnsafeUnpin for LlmReranker
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