Update docstring (#1837)

Co-authored-by: Anu <buildknowledge111@gmail.com>
This commit is contained in:
Anusha Yella
2024-09-09 22:56:04 +05:30
committed by GitHub
parent b081e43b8d
commit bbddb98aca

View File

@@ -44,10 +44,7 @@ class MemoryGraph:
Args:
data (str): The data to add to the graph.
stored_memories (list): A list of stored memories.
Returns:
dict: A dictionary containing the entities added to the graph.
filters (dict): A dictionary containing filters to be applied during the addition.
"""
# retrieve the search results
@@ -217,6 +214,7 @@ class MemoryGraph:
Args:
query (str): Query to search for.
filters (dict): A dictionary containing filters to be applied during the search.
Returns:
dict: A dictionary containing:
@@ -262,7 +260,7 @@ class MemoryGraph:
Retrieves all nodes and relationships from the graph database based on optional filtering criteria.
Args:
all_memories (list): A list of dictionaries, each containing:
filters (dict): A dictionary containing filters to be applied during the retrieval.
Returns:
list: A list of dictionaries, each containing:
- 'contexts': The base data store response for each memory.
@@ -297,6 +295,7 @@ class MemoryGraph:
source (str): The name of the source node.
target (str): The name of the target node.
relationship (str): The type of the relationship.
filters (dict): A dictionary containing filters to be applied during the update.
Raises:
Exception: If the operation fails.