pub enum PromptGranularity {
    Auto,
    Word,
    Sentence,
    Paragraph,
}Expand description
At which granularity should the target be explained in terms of the prompt. If you choose, for example, PromptGranularity::Sentence then we report the importance score of each sentence in the prompt towards generating the target output. The default is PromptGranularity::Auto which means we will try to find the granularity that brings you closest to around 30 explanations. For large prompts, this would likely be sentences. For short prompts this might be individual words or even tokens.
Variants§
Auto
Let the system decide which granularity is most suitable for the given input. This will result
Word
Sentence
Paragraph
Trait Implementations§
Source§impl Clone for PromptGranularity
 
impl Clone for PromptGranularity
Source§fn clone(&self) -> PromptGranularity
 
fn clone(&self) -> PromptGranularity
Returns a copy 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 Default for PromptGranularity
 
impl Default for PromptGranularity
Source§fn default() -> PromptGranularity
 
fn default() -> PromptGranularity
Returns the “default value” for a type. Read more
Source§impl PartialEq for PromptGranularity
 
impl PartialEq for PromptGranularity
Source§impl Serialize for PromptGranularity
 
impl Serialize for PromptGranularity
impl Copy for PromptGranularity
impl StructuralPartialEq for PromptGranularity
Auto Trait Implementations§
impl Freeze for PromptGranularity
impl RefUnwindSafe for PromptGranularity
impl Send for PromptGranularity
impl Sync for PromptGranularity
impl Unpin for PromptGranularity
impl UnwindSafe for PromptGranularity
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 moreSource§impl<T> Pointable for T
 
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
 
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
 
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as 
ReadEndian::read_from_little_endian().