Skip to content

[Bug] v2.7.0 Ollama Embedding 报错 'OllamaEmbedding' object has no attribute '_embed' #4917

@niurock

Description

@niurock

Contact Information

yniurock@gmail.com

MaxKB Version

2.7.0

Problem Description

环境:Rocky Linux, Docker, MaxKB v2.7.0, Ollama (latest).
模型:bge-m3, bge-large-zh.
现象:创建模型时报错 AttributeError: 'OllamaEmbedding' object has no attribute '_embed'。
验证:curl http://localhost:11434/api/embeddings 正常返回向量,证明 Ollama 无误。
推测:langchain 库升级导致接口不兼容。

Steps to Reproduce

创建ollama中的embedding模型

The expected correct result

成功创建模型

Related log output

Additional Information

No response

Metadata

Metadata

Assignees

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