pub struct IndexInfo {
pub vectors: usize,
pub partitions: usize,
pub subspaces: usize,
pub n_probe: usize,
pub n_rerank: usize,
}Expand description
A read-only snapshot of an index’s shape, surfaced via Mnemo::stats.
Serialize/Deserialize derived so the MCP stats tool (and any
other JSON-shaped consumer) can emit / round-trip it without a
per-field object build. Plain-old-data type — no invariants to
preserve across (de)serialization.
Fields§
§vectors: usizeVectors currently held in the index.
partitions: usizeIVF partition count.
subspaces: usizePQ subspace count.
n_probe: usizeDefault partitions probed per query.
n_rerank: usizeDefault candidates reranked per query.
Trait Implementations§
impl Copy for IndexInfo
Source§impl<'de> Deserialize<'de> for IndexInfo
impl<'de> Deserialize<'de> for IndexInfo
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
Auto Trait Implementations§
impl Forget for IndexInfo
impl Freeze for IndexInfo
impl RefUnwindSafe for IndexInfo
impl Send for IndexInfo
impl Sync for IndexInfo
impl Unpin for IndexInfo
impl UnsafeUnpin for IndexInfo
impl UnwindSafe for IndexInfo
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