Update docstring (#1837)
Co-authored-by: Anu <buildknowledge111@gmail.com>
This commit is contained in:
@@ -44,10 +44,7 @@ class MemoryGraph:
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
data (str): The data to add to the graph.
|
data (str): The data to add to the graph.
|
||||||
stored_memories (list): A list of stored memories.
|
filters (dict): A dictionary containing filters to be applied during the addition.
|
||||||
|
|
||||||
Returns:
|
|
||||||
dict: A dictionary containing the entities added to the graph.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# retrieve the search results
|
# retrieve the search results
|
||||||
@@ -217,6 +214,7 @@ class MemoryGraph:
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
query (str): Query to search for.
|
query (str): Query to search for.
|
||||||
|
filters (dict): A dictionary containing filters to be applied during the search.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
dict: A dictionary containing:
|
dict: A dictionary containing:
|
||||||
@@ -262,7 +260,7 @@ class MemoryGraph:
|
|||||||
Retrieves all nodes and relationships from the graph database based on optional filtering criteria.
|
Retrieves all nodes and relationships from the graph database based on optional filtering criteria.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
all_memories (list): A list of dictionaries, each containing:
|
filters (dict): A dictionary containing filters to be applied during the retrieval.
|
||||||
Returns:
|
Returns:
|
||||||
list: A list of dictionaries, each containing:
|
list: A list of dictionaries, each containing:
|
||||||
- 'contexts': The base data store response for each memory.
|
- 'contexts': The base data store response for each memory.
|
||||||
@@ -297,6 +295,7 @@ class MemoryGraph:
|
|||||||
source (str): The name of the source node.
|
source (str): The name of the source node.
|
||||||
target (str): The name of the target node.
|
target (str): The name of the target node.
|
||||||
relationship (str): The type of the relationship.
|
relationship (str): The type of the relationship.
|
||||||
|
filters (dict): A dictionary containing filters to be applied during the update.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
Exception: If the operation fails.
|
Exception: If the operation fails.
|
||||||
|
|||||||
Reference in New Issue
Block a user