infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
18.18k stars 1.84k forks source link

[Question]: ERROR: Knowledge bases use different embedding models #2468

Closed DennLie closed 1 week ago

DennLie commented 1 week ago

Describe your problem

Hello, i updated from 0.10.0 to 0.11.0 and now encounter a weird error that hasnt happened before. In Chat or Agent it is working fine but as soon i use the api i get the following response from the llm: {'data': {'answer': 'ERROR: Knowledge bases use different embedding models.', 'reference': []}, 'retcode': 0, 'retmsg': 'success'} This is in the payload: payload = { "conversation_id": conversation_id, "messages": [{"role": "user", "content": message_content}], "stream": False } i deleted all except one knowledge bases and i use snowflake-arctic-embed-l as embedding modell via ollama.

KevinHuSh commented 1 week ago

This means the conversation_id is related to several knowledge bases which apply different embedding models.

DennLie commented 1 week ago

Ok thx for the help. I found the error in my code.