Skip to content
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

Llava embeddings: string into Go value of type api.EmbeddingRequest #5861

Closed
ndanielsen opened this issue Jul 22, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@ndanielsen
Copy link

ndanielsen commented Jul 22, 2024

What is the issue?

I'm trying to get embeddings from the Llava34b model via this code, but get a go error:

    payload = json.dumps({
        "model": "llava:34b",
        "prompt": f"{system_prompt}\n\nHuman: {user_prompt}",
        "stream": False,
        "images": [base64_image]
    })

    # Set the headers
    headers = {
        'Content-Type': 'application/json'
    }

response = requests.post("http://192.168.1.17:6006/api/embeddings", json=payload)

returns this:

Error: 400 - {"error":"json: cannot unmarshal string into Go value of type api.EmbeddingRequest"}

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

v0.2.7

@ndanielsen ndanielsen added the bug Something isn't working label Jul 22, 2024
@rick-github
Copy link
Collaborator

ollama doesn't currently support embeddings for images: #5304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants