pub enum QueryInput {
Text {
text: String,
model: Option<String>,
text_param: Option<String>,
options: Vec<(String, Value)>,
},
Image {
source: String,
model: Option<String>,
options: Vec<(String, Value)>,
},
Object {
object: Box<Value>,
model: Option<String>,
options: Vec<(String, Value)>,
},
Vector(VectorValue),
Point(PointId),
Param(String, Option<Box<Span>>),
PositionalParam(usize, Option<Box<Span>>),
}Expand description
Query input: embeddable text/image, pre-computed vector, or point reference.
Variants§
Text
Text to embed (TEXT '…' [MODEL '…'] [OPTIONS {…}]).
Fields
Image
Image path or URL for dense embedding (CLIP vision, etc.).
Resolved to VectorValue::Dense before plan/dispatch.
Fields
Object
Custom inference object (OBJECT {…} [MODEL '…'] [OPTIONS {…}]).
Passed through to the backend inference service; never executed locally.
Fields
Vector(VectorValue)
Pre-computed vector value used as-is.
Point(PointId)
Reference point — use an existing point’s vector as the input.
Param(String, Option<Box<Span>>)
Parameter placeholder (:name) for target query input.
PositionalParam(usize, Option<Box<Span>>)
Positional parameter placeholder (?) for target query input.
Implementations§
Source§impl QueryInput
impl QueryInput
Sourcepub fn param(name: impl Into<String>) -> Self
pub fn param(name: impl Into<String>) -> Self
Construct an unlocated named parameter placeholder.
Sourcepub fn param_with_span(name: impl Into<String>, span: Span) -> Self
pub fn param_with_span(name: impl Into<String>, span: Span) -> Self
Construct a located named parameter placeholder.
Sourcepub fn positional_param(idx: usize) -> Self
pub fn positional_param(idx: usize) -> Self
Construct an unlocated positional parameter placeholder.
Sourcepub fn positional_param_with_span(idx: usize, span: Span) -> Self
pub fn positional_param_with_span(idx: usize, span: Span) -> Self
Construct a located positional parameter placeholder.
Sourcepub fn param_span(&self) -> Option<Span>
pub fn param_span(&self) -> Option<Span>
Extract the parameter source span if present.
Trait Implementations§
Source§impl Clone for QueryInput
impl Clone for QueryInput
Source§fn clone(&self) -> QueryInput
fn clone(&self) -> QueryInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more