pub struct ConceptPrompt {
pub text: String,
pub max_concepts: usize,
pub include_descriptions: bool,
pub include_types: bool,
pub domain: Option<String>,
}Expand description
Prompt for concept extraction.
Fields§
§text: StringThe text to extract concepts from.
max_concepts: usizeMaximum number of concepts to extract.
include_descriptions: boolWhether to include descriptions.
include_types: boolWhether to identify concept types.
domain: Option<String>Domain hint for better extraction.
Implementations§
Source§impl ConceptPrompt
impl ConceptPrompt
Sourcepub fn with_max_concepts(self, max: usize) -> Self
pub fn with_max_concepts(self, max: usize) -> Self
Set max concepts.
Sourcepub fn with_descriptions(self) -> Self
pub fn with_descriptions(self) -> Self
Include descriptions in output.
Sourcepub fn with_domain(self, domain: impl Into<String>) -> Self
pub fn with_domain(self, domain: impl Into<String>) -> Self
Set domain hint.
Trait Implementations§
Source§impl Clone for ConceptPrompt
impl Clone for ConceptPrompt
Source§fn clone(&self) -> ConceptPrompt
fn clone(&self) -> ConceptPrompt
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 ConceptPrompt
impl Debug for ConceptPrompt
Source§impl PromptTemplate for ConceptPrompt
impl PromptTemplate for ConceptPrompt
Auto Trait Implementations§
impl Freeze for ConceptPrompt
impl RefUnwindSafe for ConceptPrompt
impl Send for ConceptPrompt
impl Sync for ConceptPrompt
impl Unpin for ConceptPrompt
impl UnwindSafe for ConceptPrompt
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