mirror of
https://github.com/langgenius/dify.git
synced 2026-03-19 05:37:42 +08:00
update knowledge base api (#20426)
This commit is contained in:
@ -937,6 +937,9 @@ class DatasetRetrieval:
|
||||
return metadata_filter_document_ids, metadata_condition
|
||||
|
||||
def _replace_metadata_filter_value(self, text: str, inputs: dict) -> str:
|
||||
if not inputs:
|
||||
return text
|
||||
|
||||
def replacer(match):
|
||||
key = match.group(1)
|
||||
return str(inputs.get(key, f"{{{{{key}}}}}"))
|
||||
|
||||
Reference in New Issue
Block a user