Skip to main content

VectorSearchReceiptV1

Struct VectorSearchReceiptV1 

Source
pub struct VectorSearchReceiptV1 {
Show 44 fields pub schema_version: String, pub receipt_digest: Option<String>, pub receipt_id: String, pub evaluation_time: DateTime<Utc>, pub trace_id: Option<String>, pub attempt_family_id: Option<String>, pub attempt_id: Option<String>, pub replay_of: Option<String>, pub query_embedding_digest: Option<String>, pub query_text_digest: Option<String>, pub query_input_digest: Option<String>, pub filter_digest: Option<String>, pub redaction_state: Option<String>, pub budget_id: Option<String>, pub deadline_at: Option<DateTime<Utc>>, pub search_profile: String, pub candidate_backend: String, pub codec_family: Option<String>, pub codec_profile_digest: Option<String>, pub artifact_profile_digest: Option<String>, pub artifact_count: Option<usize>, pub artifact_corruption_count: Option<usize>, pub artifact_missing_count: Option<usize>, pub vector_artifact_manifest_digest: Option<String>, pub artifact_generation_id: Option<String>, pub approximate_scanned_count: Option<usize>, pub approximate_returned_count: Option<usize>, pub raw_rows_loaded_count: Option<usize>, pub filter_strategy: Option<String>, pub vector_artifact_count: Option<usize>, pub vector_artifact_missing_count: Option<usize>, pub vector_artifact_stale_count: Option<usize>, pub exact_rerank_count: Option<usize>, pub approximate_candidate_count: Option<usize>, pub fallback_reason: Option<String>, pub derived_candidate: Option<DerivedCandidateReceiptV1>, pub approximate: bool, pub requested_candidates: usize, pub returned_candidates: usize, pub post_filter_candidates: usize, pub fallback: Option<String>, pub exact_rerank: bool, pub result_ids: Vec<String>, pub degradations: Vec<String>,
}
Expand description

Receipt-ready vector/search execution metadata.

Fields§

§schema_version: String

Receipt schema version.

§receipt_digest: Option<String>

Digest of the canonical stored receipt payload, when persisted.

§receipt_id: String

Receipt or request correlation ID.

§evaluation_time: DateTime<Utc>

Timestamp used for deterministic scoring.

§trace_id: Option<String>

Optional distributed trace identifier supplied by the caller.

§attempt_family_id: Option<String>

Optional family ID tying retries/attempts for the same logical request.

§attempt_id: Option<String>

Optional retry/attempt identifier supplied by the caller.

§replay_of: Option<String>

Receipt ID this receipt replays, when applicable.

§query_embedding_digest: Option<String>

Stable BLAKE3 digest of the query embedding bytes, when available.

§query_text_digest: Option<String>

Digest of raw query text when supplied by the caller.

§query_input_digest: Option<String>

Digest of raw or structured query input when supplied by the caller.

§filter_digest: Option<String>

Digest of structured filters when supplied by the caller.

§redaction_state: Option<String>

Redaction state label for explain/replay surfaces.

§budget_id: Option<String>

Optional budget identity associated with the search.

§deadline_at: Option<DateTime<Utc>>

Optional caller deadline associated with the search.

§search_profile: String

Human-readable search profile.

§candidate_backend: String

Candidate backend used for vector retrieval.

§codec_family: Option<String>

Codec family used for derived vector artifacts, when applicable.

§codec_profile_digest: Option<String>

Codec profile digest used for derived vector artifacts, when applicable.

§artifact_profile_digest: Option<String>

Alias for derived artifact profile digest used by v11-compatible hooks.

§artifact_count: Option<usize>

Number of derived artifacts considered by the vector path.

§artifact_corruption_count: Option<usize>

Number of corrupt derived artifacts encountered by the vector path.

§artifact_missing_count: Option<usize>

Number of missing derived artifacts encountered by the vector path.

§vector_artifact_manifest_digest: Option<String>

Manifest digest for the derived vector artifacts considered by the search.

§artifact_generation_id: Option<String>

Active generation ID for derived vector artifacts, when used.

§approximate_scanned_count: Option<usize>

Number of derived artifacts scanned by approximate candidate generation.

§approximate_returned_count: Option<usize>

Number of approximate candidates returned for exact f32 reranking.

§raw_rows_loaded_count: Option<usize>

Number of authoritative raw f32 rows loaded during exact rerank.

§filter_strategy: Option<String>

Filter strategy used by approximate candidate generation.

§vector_artifact_count: Option<usize>

Number of derived vector artifacts considered by the vector path.

§vector_artifact_missing_count: Option<usize>

Number of missing derived vector artifacts encountered by the vector path.

§vector_artifact_stale_count: Option<usize>

Number of stale derived vector artifacts encountered by the vector path.

§exact_rerank_count: Option<usize>

Number of candidates exact-reranked against authoritative f32 embeddings.

§approximate_candidate_count: Option<usize>

Number of approximate candidates produced by the candidate backend.

§fallback_reason: Option<String>

Explicit fallback reason, mirrored from fallback for evidence readers.

§derived_candidate: Option<DerivedCandidateReceiptV1>

Structured receipt for derived candidate backends such as proveKV pool.

§approximate: bool

Whether approximate codec/index scoring contributed to candidate generation.

§requested_candidates: usize

Number of vector candidates requested from the backend.

§returned_candidates: usize

Number of candidates returned by the backend before SQL post-filtering.

§post_filter_candidates: usize

Number of vector candidates remaining after SQL filters and exact rerank.

§fallback: Option<String>

Fallback path, if approximate retrieval degraded or was bypassed.

§exact_rerank: bool

Whether exact f32 rerank/reference scoring was used.

§result_ids: Vec<String>

Result IDs returned to the caller.

§degradations: Vec<String>

Degradation notes visible to explain/audit paths.

Implementations§

Source§

impl VectorSearchReceiptV1

Source

pub fn answers(&self) -> SearchReceiptAnswersV1

Convert low-level receipt metadata into answers for explain/replay UX.

Trait Implementations§

Source§

impl Clone for VectorSearchReceiptV1

Source§

fn clone(&self) -> VectorSearchReceiptV1

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VectorSearchReceiptV1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for VectorSearchReceiptV1

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<VectorSearchReceiptV1, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for VectorSearchReceiptV1

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more