This document outlines the strategic roadmap for the next evolution of Linked-Mind. Having completed the core structural and analysis features, Phase 2 focuses on automation, deeper intelligence, and seamless user experience.
Currently, the system requires manual rescans. The "ideal" state is a "Living Graph" that breathes with your notes.
- Native File Watcher: Implement a cross-platform background daemon in Zig (implemented as
li watchpolling loop). - Live UI Rehydration: Automatically push updates to the
graph.jsonand trigger a refresh in the Web Visualizer when files change. - Hot-Reloading LLM Context: A persistent API server that always provides the most up-to-date
llm_knowledge.mdvia an HTTP endpoint (implemented asli serve).
Moving beyond simple connectivity to understanding the shape and importance of knowledge.
- PageRank Centrality: Implement PageRank in Zig to identify "Core Concepts" (nodes with high influence in the KB).
- Semantic Clustering (Louvain): Upgrade from "Weakly Connected Components" to the Louvain Method for modularity-based community detection.
- Link Prediction / Suggestion: Analyze the content of nodes to suggest
[[Links]]that should exist but are currently missing (Self-Healing Graph).
Bridging the gap between the graph structure and vector-based semantics.
- Local Embeddings (TF-IDF Vector Search): Implemented efficient TF-IDF embedding engine in pure Zig (
src/embeddings.zig) with vocabulary building, sparse vector cosine similarity, and top-k query support. - Hybrid Search Engine: Combine Graph BFS paths with Vector Similarity for "Contextual Retrieval" (
src/hybrid_search.zig). Supportsli search <query> --seed <title> --hops <n>to find nodes similar to a query within N graph hops of a seed node. - NLQ (Natural Language Query): Use an LLM to translate natural language questions into graph traversal queries (implemented as 'Ask AI' in visualizer querying the RAG mind-map query engine).
Transforming the visualizer from a static viewer into an interactive workspace.
- Integrated Previewer: A browser-based side-pane to see rendered Markdown content when clicking a node (implemented as side-content markdown previewer).
- Interactive Relationship Editor: Add relationships visually in the sidebar form to append wikilinks directly to the source files on disk.
- Temporal Graph View: A timeline slider to see how your knowledge graph grew over time (using file modification times).
Improving the foundation for scale.
- O(N) Link Resolution: Replace the current O(N squared)
resolveBacklinkswith a high-performance title-to-node lookup map. - Incremental Similarity Updates: Pre-computed word sets avoid redundant tokenization during similarity search.
- Multi-Format Support: Expand the parser to support
.org(Emacs),.txt, and even PDF extraction.
Tip
The goal is to move Linked-Mind from a utility to a Knowledge Operating System.