|
@@ -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(
|