Skip to content

The specified Ollama embedding model was not found. Please ensure the model is installed locally or select a different embedding model in the configuration. #248

Description

@zhenaiwork
2025-07-02 01:29:31,310 - INFO - api.websocket_wiki - websocket_wiki.py:69 - Request size: 7782 tokens
2025-07-02 01:29:31,311 - WARNING - api.ollama_patch - ollama_patch.py:56 - Could not connect to Ollama to check models: No connection adapters were found for '0.0.0.0:11434/api/tags'
2025-07-02 01:29:31,311 - ERROR - api.websocket_wiki - websocket_wiki.py:111 - Error preparing retriever: Ollama model 'nomic-embed-text' not found. Please run 'ollama pull nomic-embed-text' to install it.

在点击生成后会出现以上报错

这个是我的.env 文件

# No need for API keys when using Ollama locally
PORT=8001
# Optionally, provide OLLAMA_HOST if Ollama is not local
OLLAMA_HOST=http://localhost:11434 # (default: http://localhost:11434)

还有我的embedder.json & ollama

{
  "embedder": {
    "client_class": "OllamaClient",
    "model_kwargs": {
      "model": "nomic-embed-text"
    }
  },
  "retriever": {
    "top_k": 20
  },
  "text_splitter": {
    "split_by": "word",
    "chunk_size": 350,
    "chunk_overlap": 100
  }
}
$ ollama list                         
NAME                                 ID              SIZE      MODIFIED       
nomic-embed-text:latest              0a109f422b47    274 MB    29 minutes ago    
qwen3:1.7b                           8f68893c685c    1.4 GB    3 hours ago       
qwen3:8b                             500a1f067a9f    5.2 GB    6 hours ago       
dengcao/Qwen3-Embedding-8B:Q4_K_M    d3ca2355027f    4.7 GB    14 hours ago      
qwen3:32b                            030ee887880f    20 GB     15 hours ago      
qwen3:latest                         e4b5fd7f8af0    5.2 GB    6 weeks ago  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions