Fractal Workspace
Think in branches. Scale Memory. Keep the truth.
Created on 1st February 2026
•
Fractal Workspace
Think in branches. Scale Memory. Keep the truth.
The problem Fractal Workspace solves
Project Impact: Solving the "Linear Thinking" Constraint in AI
The Core Problem
The primary challenge in modern AI interaction is the structural misalignment between human cognition and Large Language Model (LLM) interfaces. While human ideation is naturally non-linear and "branching," current chat interfaces are strictly linear. This creates three critical real-world failures:
- Context Pollution: In a linear chat, exploring multiple sub-ideas (e.g., "Strategy A" vs. "Strategy B") forces unrelated data into a single stream. This "noise" confuses the model, leading to degraded output quality and conflicting logic.
- Context Degradation & Hallucination: As conversations grow, the "context window" fills up. Research shows that as context increases, LLMs suffer from "lost-in-the-middle" phenomena, leading to factual drift and hallucinations.
- Hardware Bottlenecks: For users running local LLMs (using 4-bit quantization or QLoRA), long linear histories consume massive VRAM and increase latency, making complex ideation slow and expensive.
The Solution: Fractal Workspace
Fractal Workspace introduces a node-based interaction primitive. Instead of a single thread, users interact with a visual lineage knowledge graph. Each node is a bounded chat instance with its own "frozen" context, allowing for parallel exploration without cross-contamination.
Real-World Applications
Example 1: Complex Research Pipelines (Preventing Pollution)
Imagine a researcher designing a Neonatal Jaundice Research Pipeline. In a standard chat, the minute details of data ingestion would eventually "bleed" into the high-level discussion about model architecture, distracting the AI.
- Fractal Approach: The user creates a "Center Node" for project goals.
- Branch A (Data Pipeline): Handles bilirubin trends and calibration.
- Branch B (Model Architecture): Discusses CNN vs. XGBoost.
- The Result: Branch B only inherits the high-level goals from the center. It remains "clean" of Branch A’s data chatter. Only when the user chooses to merge do the distilled summaries combine, keeping the reasoning sharp and relevant.
Example 2: Long-Term Knowledge Management (Summary Compression)
After weeks of experimentation, a standard chat history would span thousands of tokens, becoming unusable for local hardware and prone to error.
- Fractal Approach: Each node generates Graph Deltas (e.g., "Decision: Use EfficientNet").
- The Result: Instead of feeding the LLM 10,000 words of chat logs, Fractal Workspace feeds it a distilled Knowledge Graph summary. This keeps token usage low and performance high, while maintaining a clear "paper trail" of every decision made.
Technical Reliability through RAG
To ensure "infinite" long-term memory without bloating the prompt, Fractal Workspace integrates Retrieval-Augmented Generation (RAG). By storing artifacts as vector embeddings (using databases like FAISS or Qdrant), the system retrieves only the specific information needed for the current query.
Summary of Impact: Fractal Workspace transforms LLMs from simple chatbots into reliable, scalable ideation partners that think the way humans do—structured, branching, and focused.
Would you like me to refine the technical "Performance" section to focus more on the local hardware benefits (VRAM/latency), or should I expand on the Knowledge Graph logic for a more academic tone?
Challenges we ran into
Implementation Challenges & Solutions (Concise)
1. Local Model Constraints & Multi-Role Usage
Challenge: Limited hardware (6 GB VRAM) made it impossible to run multiple LLMs simultaneously.
Solution: Reused a single local model across multiple logical roles (chat, summarizer, graph builder, etc.) by varying prompts, context construction, and output schemas. This preserved functionality while staying within VRAM limits.
2. Phased Architecture & Schema Evolution
Challenge: Phase-1 schema was insufficient for agentic behavior and retrieval.
Solution: Evolved the database schema in later phases to store richer artifacts (summaries, graph deltas, embeddings), enabling retrieval and more advanced agent workflows without breaking provenance.
3. Relational Modeling of a DAG (Multi-Parent Nodes)
Challenge: Persisting merged nodes with multiple parents in PostgreSQL.
Issue: Initial design assumed a tree (single parent), causing merge lineage loss on reload.
Solution: Migrated the schema to explicitly support multi-parent relationships and updated SQLAlchemy models to handle self-referential many-to-one relations, preserving DAG integrity across sessions.
4. UI/UX for Branching at Scale
Challenge: Designing a UI that supports branching, merging, and provenance while remaining usable.
Solution: After evaluating multiple layouts, adopted an infinite-canvas, node-based design aligned with human mental models, despite higher implementation complexity.
5. Isomorphic State Reconciliation (Backend ↔ Frontend)
Challenge: Keeping React Flow’s visual graph consistent with persisted backend state.
Issue: Merged nodes lost edges after refresh due to incomplete reconstruction logic.
Solution: Implemented a robust hydration layer that reconstructs edges dynamically from parent and merge-parent relationships, ensuring visual state matches logical DAG state.
6. Dynamic Context Injection for LLM Reasoning
Challenge: Supplying relevant historical context without exceeding the context window.
Solution: Built a dynamic lineage resolver that traverses ancestor nodes at runtime and injects only the relevant reasoning history into the system prompt.
7. Latency vs Context (Local Inference)
Challenge: Fast local responses required minimal context without losing critical information.
Solution: Reduced active context, aggressively managed GPU-resident layers, and used the saved latency budget to retrieve relevant past context via embeddings.
8. Frontend Graph Rendering Fidelity
Challenge: Visual regressions and incorrect edge rendering for merged nodes.
Solution: Reworked React Flow edge logic to support multiple parents and fine-tuned CSS to strictly match the reference design.
9. Unstructured Data ETL (PDF → Markdown)
Challenge: Generating structured documentation from binary assets.
Solution: Built a small ETL pipeline using PDF parsing and filesystem traversal to extract text and map image paths, producing a cohesive README from unstructured sources.
Tracks Applied (2)