@@ -14,15 +14,15 @@ type VectorSetCmdable interface {
1414 VGetAttr (ctx context.Context , key , element string ) * StringCmd
1515 VInfo (ctx context.Context , key string ) * MapStringInterfaceCmd
1616 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
1818 VRandMember (ctx context.Context , key string ) * StringCmd
1919 VRandMemberCount (ctx context.Context , key string , count int ) * StringSliceCmd
2020 VRem (ctx context.Context , key , element string ) * BoolCmd
2121 VSetAttr (ctx context.Context , key , element , attr string ) * BoolCmd
2222 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
2424 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
2626}
2727
2828type Vector interface {
@@ -183,8 +183,8 @@ func (c cmdable) VLinks(ctx context.Context, key, element string) *StringSliceCm
183183}
184184
185185// `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" )
188188 _ = c (ctx , cmd )
189189 return cmd
190190}
@@ -223,7 +223,7 @@ func (c cmdable) VSim(ctx context.Context, key string, val Vector) *StringSliceC
223223}
224224
225225// `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 {
227227 return c .VSimWithArgsWithScores (ctx , key , val , & VSimArgs {})
228228}
229229
@@ -279,15 +279,15 @@ func (c cmdable) VSimWithArgs(ctx context.Context, key string, val Vector, simAr
279279
280280// `VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHSCORES] [COUNT num]
281281// [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 {
283283 if simArgs == nil {
284284 simArgs = & VSimArgs {}
285285 }
286286 args := []any {"vsim" , key }
287287 args = append (args , val .Value ()... )
288288 args = append (args , "withscores" )
289289 args = simArgs .appendArgs (args )
290- cmd := NewMapStringFloatCmd (ctx , args ... )
290+ cmd := NewVectorInfoSliceCmd (ctx , args ... )
291291 _ = c (ctx , cmd )
292292 return cmd
293293}
0 commit comments