mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-02 10:19:44 -05:00
fix: web attachment issue
This commit is contained in:
@@ -385,6 +385,8 @@ def get_rag_context(
|
||||
extracted_collections.extend(collection_names)
|
||||
|
||||
if context:
|
||||
if "data" in file:
|
||||
del file["data"]
|
||||
relevant_contexts.append({**context, "file": file})
|
||||
|
||||
contexts = []
|
||||
@@ -401,7 +403,6 @@ def get_rag_context(
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
contexts.append(
|
||||
((", ".join(file_names) + ":\n\n") if file_names else "")
|
||||
+ "\n\n".join(
|
||||
|
||||
Reference in New Issue
Block a user