[GH-ISSUE #2778] error : embedding models do not support chat #27436

Closed
opened 2026-04-22 04:47:11 -05:00 by GiteaMirror · 13 comments
Owner

Originally created by @nicho2 on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2778

i'm trying to run : ollama run nomic-embed-text

and the response to the command is : error : embedding models do not support chat

ollama version is 0.1.27 on linux ubuntu

what to do?

Originally created by @nicho2 on GitHub (Feb 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2778 i'm trying to run : ollama run nomic-embed-text and the response to the command is : error : embedding models do not support chat ollama version is 0.1.27 on linux ubuntu what to do?
Author
Owner

@wrapss commented on GitHub (Feb 27, 2024):

do you use endpoint embeddings?

<!-- gh-comment-id:1966559018 --> @wrapss commented on GitHub (Feb 27, 2024): do you use endpoint embeddings?
Author
Owner

@nicho2 commented on GitHub (Feb 27, 2024):

I want used ollama and nomic-embed-text model for embedding from anythingLLM

image

<!-- gh-comment-id:1966770522 --> @nicho2 commented on GitHub (Feb 27, 2024): I want used ollama and nomic-embed-text model for embedding from anythingLLM ![image](https://github.com/ollama/ollama/assets/11471811/e177186d-e046-4683-8155-757f0ca6e6fc)
Author
Owner

@wrapss commented on GitHub (Feb 27, 2024):

but what's the problem with anythingLLM? your first message is normal you can't run an embeddings model with ollama's cli

<!-- gh-comment-id:1966806199 --> @wrapss commented on GitHub (Feb 27, 2024): but what's the problem with anythingLLM? your first message is normal you can't run an embeddings model with ollama's cli
Author
Owner

@nicho2 commented on GitHub (Feb 28, 2024):

ok, i've understand what to do
I was misled by the command given on the ollama site: ollama run nomic-embed-text

image

<!-- gh-comment-id:1968527848 --> @nicho2 commented on GitHub (Feb 28, 2024): ok, i've understand what to do I was misled by the command given on the ollama site: ollama run nomic-embed-text ![image](https://github.com/ollama/ollama/assets/11471811/d2b66b38-52bc-4a83-a9d9-b41c73e6d772)
Author
Owner

@easp commented on GitHub (Feb 29, 2024):

Ah, yeah, the library isn't aware of embedding-only models.

<!-- gh-comment-id:1970298365 --> @easp commented on GitHub (Feb 29, 2024): Ah, yeah, the library isn't aware of embedding-only models.
Author
Owner

@wallartup commented on GitHub (Mar 4, 2024):

@nicho2 getting the same error, also want to use with Anything.

How did you fix it ?

<!-- gh-comment-id:1976759022 --> @wallartup commented on GitHub (Mar 4, 2024): @nicho2 getting the same error, also want to use with Anything. How did you fix it ?
Author
Owner

@easp commented on GitHub (Mar 4, 2024):

@wallartup embedding-specific models can't be used for chat.

<!-- gh-comment-id:1977114173 --> @easp commented on GitHub (Mar 4, 2024): @wallartup embedding-specific models **can't** be used for chat.
Author
Owner

@nicho2 commented on GitHub (Mar 5, 2024):

It's not necessary to run (just pull the model and :

image

<!-- gh-comment-id:1978327417 --> @nicho2 commented on GitHub (Mar 5, 2024): It's not necessary to run (just pull the model and : ![image](https://github.com/ollama/ollama/assets/11471811/7030b3c5-c5cd-4ba8-92f1-d5dcf3955d2b)
Author
Owner

@jmorganca commented on GitHub (Mar 12, 2024):

Hi, sorry this was misleading on ollama.com – it should show ollama pull <embedding model> now! To use the embeddings models you'll need to call the /api/embeddings endpoint: https://github.com/ollama/ollama/blob/main/docs/api.md#generate-embeddings

<!-- gh-comment-id:1990845504 --> @jmorganca commented on GitHub (Mar 12, 2024): Hi, sorry this was misleading on ollama.com – it should show `ollama pull <embedding model>` now! To use the embeddings models you'll need to call the `/api/embeddings` endpoint: https://github.com/ollama/ollama/blob/main/docs/api.md#generate-embeddings
Author
Owner

@vysecurity commented on GitHub (Mar 21, 2024):

Getting this error:

AnythingLLM-2024-03-21 at 18 21 51@2x

AnythingLLM-2024-03-21 at 18 22 06@2x

<!-- gh-comment-id:2011848268 --> @vysecurity commented on GitHub (Mar 21, 2024): Getting this error: ![AnythingLLM-2024-03-21 at 18 21 51@2x](https://github.com/ollama/ollama/assets/3596242/cb3f89c5-9024-44e8-a773-254e302f1987) ![AnythingLLM-2024-03-21 at 18 22 06@2x](https://github.com/ollama/ollama/assets/3596242/4f8ed4a8-9116-4a2a-abec-dd36c5ad4d69)
Author
Owner

@wrapss commented on GitHub (Mar 21, 2024):

Getting this error:

not sure if ollama is the problem here, the message from your vector database

<!-- gh-comment-id:2012061647 --> @wrapss commented on GitHub (Mar 21, 2024): > Getting this error: > not sure if ollama is the problem here, the message from your vector database
Author
Owner

@vysecurity commented on GitHub (Mar 21, 2024):

That’s what I thought but when I swap it to not use ollama for embedding it works

<!-- gh-comment-id:2013728621 --> @vysecurity commented on GitHub (Mar 21, 2024): That’s what I thought but when I swap it to not use ollama for embedding it works
Author
Owner

@ZiHAO-LI-cmd commented on GitHub (Apr 12, 2024):

Getting this error:

AnythingLLM-2024-03-21 at 18 21 51@2x

AnythingLLM-2024-03-21 at 18 22 06@2x

Hi, I also met the problem. Do you know how to solve it?

<!-- gh-comment-id:2051132018 --> @ZiHAO-LI-cmd commented on GitHub (Apr 12, 2024): > Getting this error: > > ![AnythingLLM-2024-03-21 at 18 21 51@2x](https://private-user-images.githubusercontent.com/3596242/315249346-cb3f89c5-9024-44e8-a773-254e302f1987.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI5MDU2NzksIm5iZiI6MTcxMjkwNTM3OSwicGF0aCI6Ii8zNTk2MjQyLzMxNTI0OTM0Ni1jYjNmODljNS05MDI0LTQ0ZTgtYTc3My0yNTRlMzAyZjE5ODcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MTJUMDcwMjU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWY0YWJiMmYzYzg3MTE1YzcxZWQ2MTA1ZTA0MThiMjgyNjhmYjkxYWRmOWJkMWMwMGUzMmUxMmEyNTQ2ODgwNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.kZ4R5h2gND0wHWHl2EHq7qhekUcOcz5gt3EPB3AuLbc) > > ![AnythingLLM-2024-03-21 at 18 22 06@2x](https://private-user-images.githubusercontent.com/3596242/315249404-4f8ed4a8-9116-4a2a-abec-dd36c5ad4d69.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI5MDU2NzksIm5iZiI6MTcxMjkwNTM3OSwicGF0aCI6Ii8zNTk2MjQyLzMxNTI0OTQwNC00ZjhlZDRhOC05MTE2LTRhMmEtYWJlYy1kZDM2YzVhZDRkNjkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MTJUMDcwMjU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZGM3NWU0OTUxOWUyMGNlMmE5OGFiODNmYWE1NzY1YjhjYTZkNmIzYjQ4ZDg3NjhhODQzZDZiMWNiY2JhMzAxMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.a_0koiNp_EIbiY0TNpQsZO-y1h3ZMdwQLUPgoRJT9XU) Hi, I also met the problem. Do you know how to solve it?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#27436