{"id":"ee1087baa1bffe77","repo":"go-redis/redis","slug":"ft-hybrid-vector-value-must-contain-a-blob-at-ind","errorCode":null,"errorMessage":"FT.HYBRID: vector Value must contain a blob at index 1","messagePattern":"FT\\.HYBRID: vector Value must contain a blob at index 1","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"search_commands.go","lineNumber":3778,"sourceCode":"\tswitch vector := v.(type) {\n\tcase *VectorFP32:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorFloat16:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorBFloat16:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorFloat64:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorInt8:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorUint8:\n\t\treturn hybridVectorBytes(vector.Val)\n\tcase *VectorValues, *VectorRef:\n\t\treturn nil, fmt.Errorf(\"FT.HYBRID: unsupported vector type %T\", v)\n\tdefault:\n\t\tvalues := v.Value()\n\t\tif len(values) < 2 {\n\t\t\treturn nil, fmt.Errorf(\"FT.HYBRID: vector Value must contain a blob at index 1\")\n\t\t}\n\t\treturn values[1], nil\n\t}\n}\n\nfunc hybridVectorBytes(blob []byte) ([]byte, error) {\n\tif len(blob) == 0 {\n\t\treturn nil, fmt.Errorf(\"FT.HYBRID: vector blob is required\")\n\t}\n\treturn blob, nil\n}\n\n// generateVectorParamName returns a parameter name that is not already present\n// in params. It is used to pass vector data via the PARAMS mechanism when the\n// caller does not provide a VectorParamName, since inline vector blobs are no\n// longer supported by Redis.\nfunc generateVectorParamName(params map[string]interface{}) string {\n\tfor i := 0; ; i++ {","sourceCodeStart":3760,"sourceCodeEnd":3796,"githubUrl":"https://github.com/go-redis/redis/blob/36d97525cd8076aed67cddf54778e9ea84550929/search_commands.go#L3760-L3796","documentation":"Error \"FT.HYBRID: vector Value must contain a blob at index 1\" thrown in go-redis/redis.","triggerScenarios":"Thrown at search_commands.go:3778 when the library encounters an invalid state.","commonSituations":"Build vector values via a typed helper so positional layout is guaranteed.","solutions":["Structure the vector Value as [fieldName, blob] with the blob at index 1","Check how the vector Value slice is constructed"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"36d97525cd8076aed67cddf54778e9ea84550929","analyzedAt":"2026-08-06T01:08:27.376Z","schemaVersion":2}