pub struct Requested {
pub m: usize,
pub ef_construction: usize,
pub ef_runtime: usize,
pub initial_cap: Option<usize>,
}Expand description
What a client asked for when it said HNSW.
Every field is optional because every one of them is optional on the wire,
and the whole thing is Copy and public because most of what happens to it
is being handed straight back out by FT.INFO.
Fields§
§m: usizeThe graph out degree, which is recorded and echoed and does nothing.
ef_construction: usizeHow hard to work while building, which sets the posting size.
ef_runtime: usizeThe search beam, which sets the probe and the rerank width.
initial_cap: Option<usize>How many vectors are coming, so the postings can be there already.
Implementations§
Source§impl Requested
impl Requested
Sourcepub fn tuning(&self) -> Tuning
pub fn tuning(&self) -> Tuning
The partition index tuning these parameters ask for.
Everything is scaled against the defaults, so a client that set nothing
gets exactly Tuning::default and a client that doubled a parameter
gets roughly double whatever it controls. The clamps at either end are
there because these numbers arrive from the network and nothing stops
somebody sending EF_RUNTIME 4000000000.