pub struct KnowledgeSearchBody {
pub knowledge_id: String,
pub query: String,
pub top_k: Option<u32>,
pub score_threshold: Option<f64>,
}Expand description
POST /knowledge/retrieve search request (P06 knowledge.retrieve).
Fields§
§knowledge_id: StringKnowledge base id.
query: StringSearch query text.
top_k: Option<u32>Top-k results (optional).
score_threshold: Option<f64>Score threshold (optional).
Trait Implementations§
Source§impl Clone for KnowledgeSearchBody
impl Clone for KnowledgeSearchBody
Source§fn clone(&self) -> KnowledgeSearchBody
fn clone(&self) -> KnowledgeSearchBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KnowledgeSearchBody
impl Debug for KnowledgeSearchBody
Auto Trait Implementations§
impl Freeze for KnowledgeSearchBody
impl RefUnwindSafe for KnowledgeSearchBody
impl Send for KnowledgeSearchBody
impl Sync for KnowledgeSearchBody
impl Unpin for KnowledgeSearchBody
impl UnsafeUnpin for KnowledgeSearchBody
impl UnwindSafe for KnowledgeSearchBody
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