mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 02:09:02 +08:00
fix: filter bug for keywork cause code can not reach (#11666)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
a725b8bb6e
commit
22258fb0bf
@ -424,7 +424,7 @@ def default_vector_search_query(
|
|||||||
) -> dict:
|
) -> dict:
|
||||||
if filters is not None:
|
if filters is not None:
|
||||||
filter_type = "post_filter" if filter_type is None else filter_type
|
filter_type = "post_filter" if filter_type is None else filter_type
|
||||||
if not isinstance(filter, list):
|
if not isinstance(filters, list):
|
||||||
raise RuntimeError(f"unexpected filter with {type(filters)}")
|
raise RuntimeError(f"unexpected filter with {type(filters)}")
|
||||||
final_ext = {"lvector": {}}
|
final_ext = {"lvector": {}}
|
||||||
if min_score != "0.0":
|
if min_score != "0.0":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user