mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
1f0cc2724a
commit
500e6e64fe
1 changed files with 3 additions and 0 deletions
|
|
@ -611,6 +611,9 @@ def get_sources_from_items(
|
|||
elif item.get("collection_name"):
|
||||
# Direct Collection Name
|
||||
collection_names.append(item["collection_name"])
|
||||
elif item.get("collection_names"):
|
||||
# Collection Names List
|
||||
collection_names.extend(item["collection_names"])
|
||||
|
||||
# If query_result is None
|
||||
# Fallback to collection names and vector search the collections
|
||||
|
|
|
|||
Loading…
Reference in a new issue