cognee/cognee/tasks/memify/extract_subgraph.py
2025-09-02 21:32:09 +02:00

7 lines
215 B
Python

from cognee.modules.retrieval.utils.brute_force_triplet_search import get_memory_fragment
async def extract_subgraph(subgraphs):
for subgraph in subgraphs:
for edge in subgraph:
yield edge