feat: Make search parameters configurable in HybridSearch

This commit is contained in:
Mirza-Samad-Ahmed-Baig
2025-08-09 17:23:03 +05:00
committed by lyingbug
parent 6eefe1c2a7
commit 789896f121
2 changed files with 14 additions and 19 deletions
+4 -4
View File
@@ -50,10 +50,10 @@ type SearchResult struct {
// SearchParams represents the search parameters
type SearchParams struct {
QueryText string
VectorThreshold float64
KeywordThreshold float64
MatchCount int
QueryText string `json:"query_text"`
VectorThreshold float64 `json:"vector_threshold"`
KeywordThreshold float64 `json:"keyword_threshold"`
MatchCount int `json:"match_count"`
}
// Value implements the driver.Valuer interface, used to convert SearchResult to database value