(args []any)
| 184 | } |
| 185 | |
| 186 | func (v VAddArgs) appendArgs(args []any) []any { |
| 187 | if v.Cas { |
| 188 | args = append(args, "cas") |
| 189 | } |
| 190 | |
| 191 | if v.NoQuant { |
| 192 | args = append(args, "noquant") |
| 193 | } else if v.Q8 { |
| 194 | args = append(args, "q8") |
| 195 | } else if v.Bin { |
| 196 | args = append(args, "bin") |
| 197 | } |
| 198 | |
| 199 | if v.EF > 0 { |
| 200 | args = append(args, "ef", strconv.FormatInt(v.EF, 10)) |
| 201 | } |
| 202 | if len(v.SetAttr) > 0 { |
| 203 | args = append(args, "setattr", v.SetAttr) |
| 204 | } |
| 205 | if v.M > 0 { |
| 206 | args = append(args, "m", strconv.FormatInt(v.M, 10)) |
| 207 | } |
| 208 | return args |
| 209 | } |
| 210 | |
| 211 | // `VADD key [REDUCE dim] (FP32 | VALUES num) vector element [CAS] [NOQUANT | Q8 | BIN] [EF build-exploration-factor] [SETATTR attributes] [M numlinks]` |
| 212 | // note: the API is experimental and may be subject to change. |
no outgoing calls
no test coverage detected