Skip to content

Conversation

@mudler
Copy link
Owner

@mudler mudler commented Sep 12, 2025

Description

This PR is to add a test to validate #6257 specifically for the llama.cpp backend. We have this test for sentencetransformers just a couple of lines below, but somehow seems we missed applying it to llama.cpp

Seems the bug is confirmed. It looks like we did had a regression while we migrated to the new mtmd/context server. We were incorrectly returning always a static embedding vector in the embedding calls with the llama.cpp backend.

Notes for Reviewers

Fixes #6257

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@netlify
Copy link

netlify bot commented Sep 12, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit efd98bc
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/68c5c14a92baf200079c2685
😎 Deploy Preview https://deploy-preview-6259--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler changed the title [TEST] fix(llama-cpp): correctly calculate embeddings Sep 12, 2025
@mudler mudler force-pushed the fix/llama-cpp-embeddings branch 4 times, most recently from c1da49d to a22cf73 Compare September 12, 2025 19:29
@mudler mudler added bug Something isn't working and removed dependencies labels Sep 12, 2025
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler force-pushed the fix/llama-cpp-embeddings branch from a22cf73 to a7c7757 Compare September 13, 2025 16:33
@mudler mudler force-pushed the fix/llama-cpp-embeddings branch from 2a7d709 to 4d15aa3 Compare September 13, 2025 19:08
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler mudler force-pushed the fix/llama-cpp-embeddings branch from 4d15aa3 to efd98bc Compare September 13, 2025 19:08
@mudler mudler merged commit 6410c99 into master Sep 13, 2025
37 checks passed
@mudler mudler deleted the fix/llama-cpp-embeddings branch September 13, 2025 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

llama.cpp: Embeddings always identical

2 participants