Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 3.17 KB

IDEALS.md

File metadata and controls

35 lines (29 loc) · 3.17 KB

🌟 Linked-Mind Phase 2: The "Ideal" Future

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.

1. ⚡ Real-Time Intelligence & Sync

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 watch polling loop).
  • Live UI Rehydration: Automatically push updates to the graph.json and 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.md via an HTTP endpoint (implemented as li serve).

2. 🧠 Advanced Graph Intelligence

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).

3. 🤖 AI & LLM Deep Integration

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). Supports li 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).

4. 🎨 Next-Level Web Visualizer

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).

5. 🛠 Technical Refactoring & Optimization

Improving the foundation for scale.

  • O(N) Link Resolution: Replace the current O(N squared) resolveBacklinks with 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.