fix(search): validate hybrid search query text
This commit is contained in:
@@ -186,6 +186,8 @@ type SearchResult struct {
|
||||
|
||||
// SearchParams represents the search parameters
|
||||
type SearchParams struct {
|
||||
// QueryText is required unless query_embedding is provided, keyword matching is disabled,
|
||||
// and vector matching remains enabled.
|
||||
QueryText string `json:"query_text"`
|
||||
QueryEmbedding []float32 `json:"query_embedding,omitempty"`
|
||||
VectorThreshold float64 `json:"vector_threshold"`
|
||||
|
||||
Reference in New Issue
Block a user