ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: is ollama embeding url wrong

Open liuxh613 opened this issue 7 months ago • 1 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (Language Policy).
  • [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • [x] Please do not modify this template :) and fill in all the required fields.

Describe your problem

Image

in ollama doc ,embeding url is /api/embed but ragflow call is /api/embeddings ragflow call wrong ollama embeding url ??

liuxh613 avatar May 22 '25 03:05 liuxh613

Based on the information available, the Ollama documentation specifies the embedding endpoint as /api/embed, while you observed that Ragflow is calling /api/embeddings. In the Ragflow code and documentation, there is no explicit mention of either /api/embed or /api/embeddings as the endpoint being used. Instead, Ragflow configures a base URL (such as http://localhost:11434/v1) and uses a client to interact with Ollama for embeddings, but the exact endpoint path is not clearly specified in the code or documentation I reviewed (example, example).

Because of this, I cannot confirm from the Ragflow repository alone whether the embedding URL being called is correct or not, or if there is a mismatch with the latest Ollama API. There are also no existing issues or discussions in the Ragflow repository that directly address this URL discrepancy.

If you have confirmed from Ollama's official documentation that /api/embed is the correct endpoint, and Ragflow is calling /api/embeddings, this could indicate a compatibility issue or a bug. However, the Ragflow code does not make this explicit, so further investigation or clarification from the maintainers may be needed.

To continue talking to Dosu, mention @dosu-bot.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar May 22 '25 03:05 dosubot[bot]

Did you set access token for Ollama? Or, the URL to Ollama servier is not correct.

KevinHuSh avatar May 26 '25 02:05 KevinHuSh