| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Knowledge graph visualization and AI-powered analysis for Datacore.
cd /path/to/datacortex
python3 -m venv .venv
source .venv/bin/activate
pip install -e .# 1. Compute embeddings (first time, ~5-10 min)
datacortex embed
# 2. Start server and open workspace
datacortex serve
# Open http://localhost:8765/workspace.html
# 3. Get AI-powered suggestions
datacortex digest # Link suggestions
datacortex gaps # Knowledge gaps
datacortex insights # Cluster analysis
datacortex search "query" # Question answering
datacortex opportunities # Low-hanging fruit for researchThe workspace provides a browser-based interface for working with your knowledge base alongside Claude Code.
┌──────────────────────────────────────────────────────────────────────────┐ │ [Search: Ctrl+P] [Links ▼] [Graph] │ ├───────────────┬──────────────────────────────────┬───────────────────────┤ │ File Tree │ Markdown Editor (CodeMirror 6) │ Knowledge Graph (D3) │ │ ├── 0-personal│ [Ask Claude] [Save] [Discard] │ - Click node to open │ │ └── 1-teamspace│ │ - Synced with editor │ ├───────────────┴──────────────────────────────────┴───────────────────────┤ │ Claude Code Terminal (xterm.js) [Clear] [Reconnect] │ └──────────────────────────────────────────────────────────────────────────┘
Features:
Access:
datacortex serve --port 8765
open http://localhost:8765/workspace.htmlOr use /datacortex workspace from Claude Code.
# Graph generation
datacortex generate --spaces personal,teamspace
datacortex stats
# Pulse snapshots
datacortex pulse generate
datacortex pulse list
datacortex pulse diff 2025-01-01 2025-01-15
# AI Extensions
datacortex embed [--space NAME] [--force]
datacortex digest [--threshold 0.8] [--top-n 20]
datacortex gaps [--min-score 0.3]
datacortex insights [--cluster N] [--top 5]
datacortex search "query" [--top 10] [--no-expand]
datacortex opportunities [--top 15]
# Server
datacortex serve [--port 8765]Use from Claude Code for AI-synthesized insights. These commands run the CLI tools and have Claude synthesize natural language recommendations from the results.
| Command | Model | Purpose |
|---|---|---|
| /datacortex | - | Launch visualization server and open browser |
| /datacortex-digest | haiku | Link suggestions based on semantic similarity |
| /datacortex-gaps | haiku | Bridge suggestions between knowledge clusters |
| /datacortex-insights | sonnet | Deep cluster analysis with themes and patterns |
| /datacortex-ask [question] | haiku | Answer questions from your knowledge base (RAG) |
| /datacortex-opportunities | haiku | Find low-hanging fruit for research |
Model assignments: Commands use ## Model hints to tell Claude Code which model to use. Haiku is fast/cheap for suggestions; Sonnet provides deeper analysis for insights.
┌─────────────────────────────────────────────────────────────┐
│ DATACORTEX SERVER │
│ - Embeddings (sentence-transformers, cached in SQLite) │
│ - Vector similarity (cosine, matrix computation) │
│ - Graph metrics (NetworkX, Louvain clustering) │
│ - Compact output (TSV/markdown, ~60% smaller than JSON) │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ CLAUDE CODE SESSION │
│ - Natural language synthesis │
│ - Link suggestions with reasoning │
│ - Bridge recommendations │
│ - Question answering with citations │
└─────────────────────────────────────────────────────────────┘
datacortex/ ├── src/datacortex/ │ ├── core/ # Models, config, database │ ├── indexer/ # Graph building from zettel_db │ ├── metrics/ # Centrality, clustering │ ├── pulse/ # Temporal snapshots │ ├── ai/ # Embeddings, similarity, cache │ ├── digest/ # Daily link suggestions │ ├── gaps/ # Knowledge gap detection │ ├── insights/ # Cluster analysis │ ├── qa/ # Question answering (RAG) │ ├── api/ # FastAPI backend │ │ └── routes/ # API endpoints (graph, files, terminal) │ └── cli/ # Click commands ├── frontend/ │ ├── index.html # Graph visualization │ └── workspace.html # Workspace UI (editor, terminal, graph) ├── config/ # YAML configuration └── docs/ # Documentation
Datacortex includes 5 AI-powered features that work together. The server computes embeddings, similarity, and metrics; Claude Code synthesizes natural language insights from the results.
Compute semantic embeddings for all documents using local sentence-transformers (no API keys needed).
datacortex embed # Incremental (only new/changed)
datacortex embed --force # Recompute all
datacortex embed --space personal # Single spaceFind documents that should be linked based on semantic similarity but aren't yet connected.
datacortex digest --threshold 0.8 --top-n 20Detect sparse areas between knowledge clusters that need bridge notes.
datacortex gaps --min-score 0.3Analyze knowledge clusters to identify themes, hubs, and patterns.
datacortex insights --cluster 3 # Single cluster detail
datacortex insights --top 5 # Top 5 clusters by sizeRAG (Retrieval-Augmented Generation) pipeline for "What do I know about X?" queries.
datacortex search "data tokenization" --top 10
datacortex search "Data pilot" --no-expand # Skip graph expansionFind "low-hanging fruit" - stubs to fill, orphans to integrate, underlinked content to connect.
datacortex opportunities # Find research opportunities
datacortex opportunities --top 20 # More results per category
datacortex opportunities --space teamspace # Single spaceExample output:
## HIGH_VALUE_STUBS Fair Data Economy | 16 refs | 0.402 | stub, needs-content Bootstrap Liquidity Fund | 11 refs | 0.237 | stub, needs-content ## INTEGRATION_CANDIDATES Organization Overview | 9166w | unknown | research/Organization-Overview.md SemantiCord - Technical Overview | 3700w | unknown | research/SemantiCord.md ## UNDERLINKED_CONTENT ChainLink | 3507w | 1 links | page Investment Thesis | 3337w | 2 links | page ## STUB_HEAVY_CLUSTERS Cluster 89 | 129 nodes | 127 stubs | 98% | DataStore; Knowledge Network; CloudSync Cluster 1 | 41 nodes | 30 stubs | 73% | Triple-Sided Marketplace; AI Agents
Use with /datacortex-opportunities in Claude Code - it presents the list and offers to research/fill selected items.
Create config/datacortex.local.yaml to override defaults:
spaces:
- personal
- teamspace
server:
port: 8765
graph:
include_stubs: false
compute_clusters: true
ai:
embedding_model: sentence-transformers/all-mpnet-base-v2
content_length: 500
qa_model: claude-3-haiku-20240307pip install -e ".[dev]"
pytestMIT
| Back | FazBrowse Home | New Git URL |