llms/mistral: Implementing embeddings.EmbedderClient for Mistral and an example with PGVector #2407
Annotations
6 errors and 1 warning
Run golangci-lint:
llms/mistral/mistralembed_test.go#L38
G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand) (gosec)
|
Run golangci-lint:
llms/mistral/mistralembed.go#L26
Consider pre-allocating `allEmbds` (prealloc)
|
Run golangci-lint:
llms/mistral/mistralembed.go#L21
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
Run golangci-lint:
llms/mistral/mistralembed_test.go#L13
unnecessary leading newline (whitespace)
|
Run golangci-lint:
llms/mistral/mistralembed_test.go#L53
Function TestMistralEmbed missing the call to method parallel (paralleltest)
|
Run golangci-lint
issues found
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading