[Mnemosyne] Memory Path — BFS shortest path between memories #1265
Reference in New Issue
Block a user
Delete Branch "feat/mnemosyne-memory-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adds
shortest_path()andpath_explanation()toMnemosyneArchive.BFS-based pathfinding through the connection graph answers "how is memory X related to memory Y?" by finding the shortest chain of connections.
Changes
archive.py:shortest_path(start_id, end_id)andpath_explanation(path)methodscli.py:mnemosyne path <start_id> <end_id>commandtests/test_path.py: 8 test cases covering direct, multi-hop, no-path, same-entry, nonexistent, shortest-of-multiple, explanation, and truncationFEATURES.yaml: markedmemory_pulseas shipped, addedmemory_pathExample