fix(search): validate hybrid search query text

This commit is contained in:
zhangzherui
2026-07-23 06:32:30 +08:00
committed by lyingbug
parent 97bcca21c6
commit 7fde37eeeb
6 changed files with 146 additions and 0 deletions
+2
View File
@@ -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"`