refactor: update cognee tasks to add frequency tracking script
This commit is contained in:
parent
aeda1d8eba
commit
ee29dd1f81
1 changed files with 7 additions and 0 deletions
7
cognee/tasks/memify/extract_usage_frequency.py
Normal file
7
cognee/tasks/memify/extract_usage_frequency.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from cognee.modules.graph.cognee_graph.CogneeGraph import CogneeGraph
|
||||
|
||||
|
||||
async def extract_subgraph(subgraphs: list[CogneeGraph]):
|
||||
for subgraph in subgraphs:
|
||||
for edge in subgraph.edges:
|
||||
yield edge
|
||||
Loading…
Add table
Reference in a new issue