mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-26 01:52:16 +08:00
Handle searching dataset without embedding model (#16742)
### Summary Handle searching dataset without embedding model In this PR, Searching datasets with different embedding models or searching dataset with/without embedding models are not allowed. We will improve the behavior later.
This commit is contained in:
@@ -2301,6 +2301,7 @@ def _load_chat_api_module(monkeypatch):
|
||||
|
||||
kb_svc_mod = ModuleType("api.db.services.knowledgebase_service")
|
||||
kb_svc_mod.KnowledgebaseService = SimpleNamespace(query=lambda **_k: [], accessible=lambda **_k: True)
|
||||
kb_svc_mod.validate_dataset_embedding_models = lambda _kbs: None
|
||||
monkeypatch.setitem(sys.modules, "api.db.services.knowledgebase_service", kb_svc_mod)
|
||||
|
||||
class _FakeLLMBundle:
|
||||
|
||||
Reference in New Issue
Block a user