pub struct GleaningConfig {
pub max_gleaning_rounds: usize,
pub completion_threshold: f64,
pub entity_confidence_threshold: f64,
pub use_llm_completion_check: bool,
pub entity_types: Vec<String>,
pub temperature: f32,
pub max_tokens: usize,
}Expand description
Configuration for gleaning-based entity extraction
Fields§
§max_gleaning_rounds: usizeMaximum number of gleaning rounds (typically 3-4)
completion_threshold: f64Threshold for extraction completion (0.0-1.0)
entity_confidence_threshold: f64Minimum confidence for extracted entities (0.0-1.0)
use_llm_completion_check: boolWhether to use LLM for completion checking (always true for real gleaning)
entity_types: Vec<String>Entity types to extract
temperature: f32LLM temperature for extraction (lower = more consistent)
max_tokens: usizeMaximum tokens for LLM responses
Trait Implementations§
Source§impl Clone for GleaningConfig
impl Clone for GleaningConfig
Source§fn clone(&self) -> GleaningConfig
fn clone(&self) -> GleaningConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 GleaningConfig
impl Debug for GleaningConfig
Auto Trait Implementations§
impl Freeze for GleaningConfig
impl RefUnwindSafe for GleaningConfig
impl Send for GleaningConfig
impl Sync for GleaningConfig
impl Unpin for GleaningConfig
impl UnsafeUnpin for GleaningConfig
impl UnwindSafe for GleaningConfig
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,
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