Update rag.py

fixed unterminated string literals
This commit is contained in:
teflon 2025-08-15 11:57:00 -04:00 committed by GitHub
parent f001b15fd0
commit 62683589cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

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