mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix issue: query is none when doing retrieval (#10129)
This commit is contained in:
parent
2ecdc54b0b
commit
dad041c49f
|
@ -34,6 +34,8 @@ class RetrievalService:
|
|||
reranking_mode: Optional[str] = "reranking_model",
|
||||
weights: Optional[dict] = None,
|
||||
):
|
||||
if not query:
|
||||
return []
|
||||
dataset = db.session.query(Dataset).filter(Dataset.id == dataset_id).first()
|
||||
if not dataset:
|
||||
return []
|
||||
|
|
Loading…
Reference in New Issue
Block a user