pub struct PresetBudget {
pub memory_chars: usize,
pub notes_chars: usize,
pub seed_entities: usize,
pub graph_relations_chars: usize,
pub graph_context_chars: usize,
pub note_titles: usize,
}Expand description
预设的阈值。输出量按字符数封顶(重排模型按字符数算,不看条数), 种子实体是中间量,仍按个数。
Fields§
§memory_chars: usize记忆那一路的字符数上限。
notes_chars: usize笔记那一路的字符数上限。
seed_entities: usize图谱那一路取前几个实体当种子。
graph_relations_chars: usize图谱第二步命中的关系的字符数上限。
graph_context_chars: usize图谱第三步铺开的关系与事件的字符数上限(关系与事件共用这一份)。
note_titles: usize笔记那一路「书名块」想要的条数;也是路径兜底的触发线——书名块不足这么多才用地名补。
Trait Implementations§
Source§impl Clone for PresetBudget
impl Clone for PresetBudget
impl Copy for PresetBudget
Source§impl Debug for PresetBudget
impl Debug for PresetBudget
Source§impl Default for PresetBudget
impl Default for PresetBudget
Source§impl<'de> Deserialize<'de> for PresetBudgetwhere
PresetBudget: Default,
impl<'de> Deserialize<'de> for PresetBudgetwhere
PresetBudget: Default,
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
impl Eq for PresetBudget
Source§impl PartialEq for PresetBudget
impl PartialEq for PresetBudget
Source§impl Serialize for PresetBudget
impl Serialize for PresetBudget
impl StructuralPartialEq for PresetBudget
Auto Trait Implementations§
impl Freeze for PresetBudget
impl RefUnwindSafe for PresetBudget
impl Send for PresetBudget
impl Sync for PresetBudget
impl Unpin for PresetBudget
impl UnsafeUnpin for PresetBudget
impl UnwindSafe for PresetBudget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> Fruit for T
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