pub struct CreateGraphIndexRequest {Show 13 fields
pub name: String,
pub dim: u32,
pub m: u32,
pub m_max0: u32,
pub ef_construction: u32,
pub ef_search: u32,
pub metric: String,
pub edge_segment_duration: u64,
pub backend: String,
pub default_decay_half_life_ms: u64,
pub quantizer: String,
pub shared_sub_plus1: u32,
pub cf_id_hint: u32,
}Fields§
§name: Stringgraph index name (e.g., “news”)
dim: u32vector dimensionality
m: u32HNSW M parameter
m_max0: u32HNSW max neighbors at layer 0
ef_construction: u32HNSW ef_construction
ef_search: u32HNSW ef_search
metric: String“l2”, “cosine”, “ip”
edge_segment_duration: u64time segment for edge partitioning (ms)
backend: String“disk_hnsw” or “spfresh” (default: “spfresh”)
default_decay_half_life_ms: u64Per-graph default recency half-life (ms) for graph_rag_search recency decay. 0 = use the server ~180d constant. A GraphRagSearch sending decay_half_life_ms == 0 resolves to this persisted value when set.
quantizer: StringIn-list vector quantizer: “sq8”, “pq”, or “rabitq”. “” = backend default (disk_hnsw -> sq8, spfresh -> pq), which is byte-identical to pre-field behavior. Part of the graph’s schema identity: a re-create with a different quantizer is rejected (change it via an explicit rebuild).
P5b: shared-CF sub-index id (+1 encoding: 0 = dedicated CF, N = sub N-1) so the field is optional without proto3 optional syntax.
cf_id_hint: u32The metadata-registry cf_id this graph is registered under. A data node creates its physical CF at exactly this id, keeping the node-local physical id space and the cluster-wide metadata space identical — a replicated write batch names its CF by number, so letting each node pick its own would wedge apply or land rows in the wrong column family.
The gateway reserves the id (MetadataOp::ReserveCfId) before fanning out, so this is authoritative rather than advisory. 0 means the reservation could not be obtained; the node then allocates locally and the applier’s id translation covers the difference.
Trait Implementations§
Source§impl Clone for CreateGraphIndexRequest
impl Clone for CreateGraphIndexRequest
Source§fn clone(&self) -> CreateGraphIndexRequest
fn clone(&self) -> CreateGraphIndexRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateGraphIndexRequest
impl Debug for CreateGraphIndexRequest
Source§impl Default for CreateGraphIndexRequest
impl Default for CreateGraphIndexRequest
Source§impl Message for CreateGraphIndexRequest
impl Message for CreateGraphIndexRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for CreateGraphIndexRequest
impl PartialEq for CreateGraphIndexRequest
impl StructuralPartialEq for CreateGraphIndexRequest
Auto Trait Implementations§
impl Freeze for CreateGraphIndexRequest
impl RefUnwindSafe for CreateGraphIndexRequest
impl Send for CreateGraphIndexRequest
impl Sync for CreateGraphIndexRequest
impl Unpin for CreateGraphIndexRequest
impl UnsafeUnpin for CreateGraphIndexRequest
impl UnwindSafe for CreateGraphIndexRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request