From 62683589cbc611583cc863b6ff4981f40e3a8b0f Mon Sep 17 00:00:00 2001 From: teflon <41391415+0xksdata@users.noreply.github.com> Date: Fri, 15 Aug 2025 11:57:00 -0400 Subject: [PATCH] Update rag.py fixed unterminated string literals --- src/cai/tools/misc/rag.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cai/tools/misc/rag.py b/src/cai/tools/misc/rag.py index 7d4b16f2..9e462e1e 100644 --- a/src/cai/tools/misc/rag.py +++ b/src/cai/tools/misc/rag.py @@ -69,8 +69,7 @@ def add_to_memory_episodic(texts: str, step: int = 0, **kwargs) -> str: # pylin ) if success: - return f"Successfully added document to collection { - collection_name}" + return f"Successfully added document to collection {collection_name}" return "Failed to add documents to vector database" except Exception as e: # pylint: disable=broad-exception-caught @@ -107,8 +106,7 @@ def add_to_memory_semantic(texts: str, step: int = 0, **kwargs) -> str: # pylin ) if success: - return f"Successfully added document to collection { - collection_name}" + return f"Successfully added document to collection {collection_name}" return "Failed to add documents to vector database" except Exception as e: # pylint: disable=broad-exception-caught