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

Method VSimWithArgsWithAttribs

vectorset_commands.go:433–444  ·  vectorset_commands.go::cmdable.VSimWithArgsWithAttribs

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

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

Source from the content-addressed store, hash-verified

431// WITHATTRIBS is only available in Redis v8.2.0+
432// note: the API is experimental and may be subject to change.
433func (c cmdable) VSimWithArgsWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorAttribSliceCmd {
434 if simArgs == nil {
435 simArgs = &VSimArgs{}
436 }
437 args := []any{"vsim", key}
438 args = append(args, val.Value()...)
439 args = append(args, "withattribs")
440 args = simArgs.appendArgs(args)
441 cmd := NewVectorAttribSliceCmd(ctx, args...)
442 _ = c(ctx, cmd)
443 return cmd
444}
445
446// `VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHSCORES] [WITHATTRIBS] [COUNT num] [EPSILON delta]
447// [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]`

Callers

nothing calls this directly

Calls 3

NewVectorAttribSliceCmdFunction · 0.85
ValueMethod · 0.65
appendArgsMethod · 0.45

Tested by

no test coverage detected