Skip to content

Knowledge Graph

The knowledge graph is the core data structure in LoomBrain. Everything you capture becomes a node. Relationships between nodes are detected automatically and represented as links.

A node is the fundamental unit of your graph. Each node contains:

FieldDescription
TitleCanonical name of the content
Summary2–4 sentence abstract
BodyFull markdown representation of the source
Key pointsBulleted list of extracted facts
TagsPARA assignments (Projects, Areas, Resources)
Content typearticle, tweet, video, repo, pdf, audio, note, image
StatusCurrent processing or review state (see below)
StatusMeaning
rawFreshly created; processing may still be in progress
validatedYou have confirmed the node is correct and useful
dismissedMarked as not relevant; hidden from default views

Nodes start as raw. You can promote a node to validated from the dashboard, CLI, or MCP. Dismissing a node removes it from search results and graph views without deleting it.

Links are bidirectional connections between related nodes. They are created automatically during the ingestion pipeline when the AI detects a meaningful relationship between a new node and existing ones.

Each link has:

  • Source and target node IDs
  • Confidence weight — how strongly the AI believed the relationship was meaningful
  • Optional label — a short description of the relationship type

You can also create and delete links manually from the dashboard or via the API.

LoomBrain supports three search modes. You can select the mode explicitly in the CLI (--mode) or dashboard filter panel.

Uses SQLite FTS5 full-text search. Matches exact terms and their inflections. Fast and precise — best when you know specific words that appear in the content you are looking for. Respects all active filters (status, content type, PARA tag).

Terminal window
lb search "rate limiting exponential backoff" --mode keyword

Uses cosine similarity on vector embeddings. Matches by meaning rather than exact wording. Useful when you remember the concept but not the specific vocabulary used in the source.

Terminal window
lb search "how to slow down retries" --mode semantic

Combines keyword and semantic results using Reciprocal Rank Fusion (RRF). RRF merges two ranked lists into a single ranking without requiring score normalization. The result typically outperforms either mode alone — precise when the exact term is present, resilient when it is not.

Terminal window
lb search "rate limiting" --mode hybrid

Hybrid is the default for both the CLI and the dashboard search bar.

The dashboard includes a graph view powered by Cytoscape.js with a force-directed layout. Nodes are rendered as circles, sized by connection count. Links are drawn as edges between them.

You can:

  • Click a node to open its detail panel
  • Drag nodes to rearrange the layout
  • Filter the visible graph by PARA tag, content type, or node status
  • Use the search bar to highlight matching nodes within the graph

The graph view is intended for exploration and pattern recognition — finding clusters of related knowledge you may not have noticed through list-based search.