go-redis/redis · error
FT.HYBRID: vector data is required
Error message
FT.HYBRID: vector data is required
What it means
Error "FT.HYBRID: vector data is required" thrown in go-redis/redis.
Source
Thrown at search_commands.go:3757
// The 'index' parameter specifies the index to search, 'searchExpr' is the search query,
// 'vectorField' is the name of the vector field, and 'vectorData' is the vector to search with.
// FTHybrid is still experimental, the command behaviour and signature may change
func (c cmdable) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, vectorData Vector) *FTHybridCmd {
options := &FTHybridOptions{
CountExpressions: 2,
SearchExpressions: []FTHybridSearchExpression{
{Query: searchExpr},
},
VectorExpressions: []FTHybridVectorExpression{
{VectorField: vectorField, VectorData: vectorData},
},
}
return c.FTHybridWithArgs(ctx, index, options)
}
func hybridVectorBlob(v Vector) (interface{}, error) {
if v == nil {
return nil, fmt.Errorf("FT.HYBRID: vector data is required")
}
switch vector := v.(type) {
case *VectorFP32:
return hybridVectorBytes(vector.Val)
case *VectorFloat16:
return hybridVectorBytes(vector.Val)
case *VectorBFloat16:
return hybridVectorBytes(vector.Val)
case *VectorFloat64:
return hybridVectorBytes(vector.Val)
case *VectorInt8:
return hybridVectorBytes(vector.Val)
case *VectorUint8:
return hybridVectorBytes(vector.Val)
case *VectorValues, *VectorRef:
return nil, fmt.Errorf("FT.HYBRID: unsupported vector type %T", v)
default:View on GitHub (pinned to 36d97525cd)
Solutions
- Provide vector data (blob or value list) in the FT.HYBRID vector clause
- Populate the vector field before building the query
When it happens
Trigger: Thrown at search_commands.go:3757 when the library encounters an invalid state.
Common situations: Validate hybrid query inputs (vector presence) before dispatch.
AI-assisted analysis of go-redis/redis@36d97525cd (2026-08-06).
Data as JSON: /data/errors/b6b4ecd594011455.json.
Report an issue: GitHub.