-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse embedding error, expected all numeric but string is prefixed with "embedding 0: #213
Comments
I have a local branch with a fix in it. I can create a pull if needed. |
Hi @kbrisso, I'm not sure this issue is related to Lingoose, the project doesn't have a tool called |
Here is the full code snippet. You call the llama.cpp embedder exe "llama-embedding.exe" with this method llamacppembedder.New().WithModel(......).WithLlamaCppPath(.......) This is how I fixed it in your llamaccp.go file in your project. |
Could you try without |
I tried all the settings and none of them worked. I spent all weekend on this. Your code expects a perfect string that can be converted to a slice. If you review the llama.cpp code you will see it returns the string like below "embedding 0:" 0.011059 -0.014784 -0.018492 0.020268 -0.027386 0.022915 |
Ok let's try the lingoose version |
Works great! Thanks! |
fixed here: #200 |
Describe the bug
When using llama-embeddings.exe the embedding returns a string from the command out that is formatted like this "embedding 0:" 0.011059 -0.014784 -0.018492 0.020268 -0.027386 0.022915 " This part "embedding 0" is causing the issue.
To Reproduce
Steps to reproduce the behavior:
llama-embedding.exe -m mxbai-embed-large-v1-f16.gguf --pooling mean -p "Madam Speaker Madam Vice President our First Lady and Second Gentleman. Members of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans. Last year COVID-19 kept us apart. This year we are finally together again. Tonight we meet as Democrats Republicans and Independents. But most importantly as Americans. With a duty to one another to the American people to the Constitution. And with an u" >>log.text
Expected behavior
String with spaces with no alpha text, all text should numeric.
Screenshots
Posted issues in Discord.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: