pub struct CompletenessReport {
pub total_entities: usize,
pub hit_entities: usize,
pub k: usize,
pub ratio: f64,
pub judged: bool,
}Expand description
维度 3(v32 6.3 FR-104):Completeness@K 文档可检索性
RepoDocBench 五维之一:实体的文档可检索性——用实体名检索 text 索引 (FTS5 BM25)top-K 条目,命中判定=任一条目所属模块与实体所属模块 相同,且该模块页存在于产物。语义是「能否通过检索找到实体的模块页」, 与 Coverage(提及率)互补:提及率高但检索命不中 = 文档难导航。
Fields§
§total_entities: usize实体总数(AST 解析去重后,与 Coverage 同源)
hit_entities: usize命中实体数(top-K 检索命中所属模块页)
k: usizeK 值(text 索引检索条目数上限,FR-104 固定 10)
ratio: f64命中率 = hit / total(total 为 0 时 1.0 空集约定)
judged: boolv32(FR-101):text 索引缺失/不可用时降级跳过(false), 报告显式标注而非静默
Trait Implementations§
Source§impl Clone for CompletenessReport
impl Clone for CompletenessReport
Source§fn clone(&self) -> CompletenessReport
fn clone(&self) -> CompletenessReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompletenessReport
impl Debug for CompletenessReport
Auto Trait Implementations§
impl Freeze for CompletenessReport
impl RefUnwindSafe for CompletenessReport
impl Send for CompletenessReport
impl Sync for CompletenessReport
impl Unpin for CompletenessReport
impl UnsafeUnpin for CompletenessReport
impl UnwindSafe for CompletenessReport
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more