@@ -14,15 +14,15 @@ type VectorSetCmdable interface {
14
14
VGetAttr (ctx context.Context , key , element string ) * StringCmd
15
15
VInfo (ctx context.Context , key string ) * MapStringInterfaceCmd
16
16
VLinks (ctx context.Context , key , element string ) * StringSliceCmd
17
- VLinksWithScores (ctx context.Context , key , element string ) * MapStringFloatCmd
17
+ VLinksWithScores (ctx context.Context , key , element string ) * VectorInfoSliceCmd
18
18
VRandMember (ctx context.Context , key string ) * StringCmd
19
19
VRandMemberCount (ctx context.Context , key string , count int ) * StringSliceCmd
20
20
VRem (ctx context.Context , key , element string ) * BoolCmd
21
21
VSetAttr (ctx context.Context , key , element , attr string ) * BoolCmd
22
22
VSim (ctx context.Context , key string , val Vector ) * StringSliceCmd
23
- VSimWithScores (ctx context.Context , key string , val Vector ) * MapStringFloatCmd
23
+ VSimWithScores (ctx context.Context , key string , val Vector ) * VectorInfoSliceCmd
24
24
VSimWithArgs (ctx context.Context , key string , val Vector , args * VSimArgs ) * StringSliceCmd
25
- VSimWithArgsWithScores (ctx context.Context , key string , val Vector , args * VSimArgs ) * MapStringFloatCmd
25
+ VSimWithArgsWithScores (ctx context.Context , key string , val Vector , args * VSimArgs ) * VectorInfoSliceCmd
26
26
}
27
27
28
28
type Vector interface {
@@ -183,8 +183,8 @@ func (c cmdable) VLinks(ctx context.Context, key, element string) *StringSliceCm
183
183
}
184
184
185
185
// `VLINKS key element WITHSCORES`
186
- func (c cmdable ) VLinksWithScores (ctx context.Context , key , element string ) * MapStringFloatCmd {
187
- cmd := NewMapStringFloatCmd (ctx , "vlinks" , key , element , "withscores" )
186
+ func (c cmdable ) VLinksWithScores (ctx context.Context , key , element string ) * VectorInfoSliceCmd {
187
+ cmd := NewVectorInfoSliceCmd (ctx , "vlinks" , key , element , "withscores" )
188
188
_ = c (ctx , cmd )
189
189
return cmd
190
190
}
@@ -223,7 +223,7 @@ func (c cmdable) VSim(ctx context.Context, key string, val Vector) *StringSliceC
223
223
}
224
224
225
225
// `VSIM key (ELE | FP32 | VALUES num) (vector | element) WITHSCORES`
226
- func (c cmdable ) VSimWithScores (ctx context.Context , key string , val Vector ) * MapStringFloatCmd {
226
+ func (c cmdable ) VSimWithScores (ctx context.Context , key string , val Vector ) * VectorInfoSliceCmd {
227
227
return c .VSimWithArgsWithScores (ctx , key , val , & VSimArgs {})
228
228
}
229
229
@@ -279,15 +279,15 @@ func (c cmdable) VSimWithArgs(ctx context.Context, key string, val Vector, simAr
279
279
280
280
// `VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHSCORES] [COUNT num]
281
281
// [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]`
282
- func (c cmdable ) VSimWithArgsWithScores (ctx context.Context , key string , val Vector , simArgs * VSimArgs ) * MapStringFloatCmd {
282
+ func (c cmdable ) VSimWithArgsWithScores (ctx context.Context , key string , val Vector , simArgs * VSimArgs ) * VectorInfoSliceCmd {
283
283
if simArgs == nil {
284
284
simArgs = & VSimArgs {}
285
285
}
286
286
args := []any {"vsim" , key }
287
287
args = append (args , val .Value ()... )
288
288
args = append (args , "withscores" )
289
289
args = simArgs .appendArgs (args )
290
- cmd := NewMapStringFloatCmd (ctx , args ... )
290
+ cmd := NewVectorInfoSliceCmd (ctx , args ... )
291
291
_ = c (ctx , cmd )
292
292
return cmd
293
293
}
0 commit comments