pub struct BeliefRevisionParams {
pub hypothesis: String,
pub hypothesis_vec: Option<Vec<f32>>,
pub contradiction_threshold: f32,
pub max_depth: u32,
pub hypothesis_confidence: f32,
}Expand description
Parameters for a belief revision query.
Fields§
§hypothesis: StringThe hypothesis to test against the knowledge graph.
hypothesis_vec: Option<Vec<f32>>Optional feature vector for the hypothesis (for similarity search).
contradiction_threshold: f32Minimum similarity threshold to consider something a contradiction.
max_depth: u32Maximum depth for cascade propagation.
hypothesis_confidence: f32Confidence of the hypothesis itself.
Trait Implementations§
Source§impl Clone for BeliefRevisionParams
impl Clone for BeliefRevisionParams
Source§fn clone(&self) -> BeliefRevisionParams
fn clone(&self) -> BeliefRevisionParams
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 moreAuto Trait Implementations§
impl Freeze for BeliefRevisionParams
impl RefUnwindSafe for BeliefRevisionParams
impl Send for BeliefRevisionParams
impl Sync for BeliefRevisionParams
impl Unpin for BeliefRevisionParams
impl UnsafeUnpin for BeliefRevisionParams
impl UnwindSafe for BeliefRevisionParams
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