Skip to content

llms/mistral: Implementing embeddings.EmbedderClient for Mistral and an example with PGVector #2407

llms/mistral: Implementing embeddings.EmbedderClient for Mistral and an example with PGVector

llms/mistral: Implementing embeddings.EmbedderClient for Mistral and an example with PGVector #2407

Triggered via pull request December 28, 2024 08:38
Status Failure
Total duration 3m 30s
Artifacts

ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 3 warnings
Build Examples
cannot use model (variable of type *"github.com/tmc/langchaingo/llms/mistral".Model) as embeddings.EmbedderClient value in argument to embeddings.NewEmbedder: *"github.com/tmc/langchaingo/llms/mistral".Model does not implement embeddings.EmbedderClient (missing method CreateEmbedding)
Build Examples
Process completed with exit code 2.
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)
Lint: llms/mistral/mistralembed.go#L26
Consider pre-allocating `allEmbds` (prealloc)
Lint: llms/mistral/mistralembed.go#L21
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Lint: llms/mistral/mistralembed_test.go#L13
unnecessary leading newline (whitespace)
Lint: llms/mistral/mistralembed_test.go#L53
Function TestMistralEmbed missing the call to method parallel (paralleltest)
Lint
issues found
Build Examples
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build and Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636