MCPcopy
hub / github.com/redis/go-redis / VSimWithArgsWithScores

Method VSimWithArgsWithScores

vectorset_commands.go:416–427  ·  vectorset_commands.go::cmdable.VSimWithArgsWithScores

`VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHSCORES] [COUNT num] [EPSILON delta] [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]` note: the API is experimental and may be subject to change.

(ctx context.Context, key string, val Vector, simArgs *VSimArgs)

Source from the content-addressed store, hash-verified

414// [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]`
415// note: the API is experimental and may be subject to change.
416func (c cmdable) VSimWithArgsWithScores(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreSliceCmd {
417 if simArgs == nil {
418 simArgs = &VSimArgs{}
419 }
420 args := []any{"vsim", key}
421 args = append(args, val.Value()...)
422 args = append(args, "withscores")
423 args = simArgs.appendArgs(args)
424 cmd := NewVectorInfoSliceCmd(ctx, args...)
425 _ = c(ctx, cmd)
426 return cmd
427}
428
429// `VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHATTRIBS] [COUNT num] [EPSILON delta]
430// [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]`

Callers 1

VSimWithScoresMethod · 0.95

Calls 3

NewVectorInfoSliceCmdFunction · 0.85
ValueMethod · 0.65
appendArgsMethod · 0.45

Tested by

no test coverage detected