pub struct MultiQueryConfig {
pub num_queries: usize,
pub k_per_query: usize,
pub final_k: usize,
pub prompt_template: String,
}Expand description
MultiQueryRetriever 配置
Fields§
§num_queries: usize生成的查询数量
k_per_query: usize每个查询返回的文档数
final_k: usize最终返回的文档数
prompt_template: String查询生成 prompt
Implementations§
Source§impl MultiQueryConfig
impl MultiQueryConfig
pub fn new() -> Self
pub fn with_num_queries(self, n: usize) -> Self
pub fn with_k_per_query(self, k: usize) -> Self
pub fn with_final_k(self, k: usize) -> Self
pub fn with_prompt(self, prompt: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiQueryConfig
impl RefUnwindSafe for MultiQueryConfig
impl Send for MultiQueryConfig
impl Sync for MultiQueryConfig
impl Unpin for MultiQueryConfig
impl UnsafeUnpin for MultiQueryConfig
impl UnwindSafe for MultiQueryConfig
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