feat: implement interactive knowledge graph visualization and AI-driven graph optimization dashboard

This commit is contained in:
RaymondVerhoef
2026-05-11 22:32:47 +02:00
parent 8192422263
commit c940c984ad
7 changed files with 207 additions and 34 deletions

View File

@@ -2,7 +2,8 @@ import { anthropicApi } from './api';
import { storage } from './storage';
const SYSTEM_PROMPT = `You are an AI knowledge extractor for Respellion, an IT company built on radical transparency.
You receive a source text. Your task is to extract core concepts, roles, processes, and facts, and return them as a structured JSON Knowledge Graph.
You receive a source text. Your task is to extract core concepts, roles, and processes, and return them as a structured JSON Knowledge Graph.
Facts should be integrated into the descriptions of the other labels and NOT be extracted as unique topics.
ALWAYS return a valid JSON object in the following format:
{
@@ -10,7 +11,7 @@ ALWAYS return a valid JSON object in the following format:
{
"id": "unique-slug",
"label": "Topic title",
"type": "concept | role | process | fact",
"type": "concept | role | process",
"description": "A concise, clear explanation of max 3 sentences."
}
],

View File

@@ -167,7 +167,7 @@ Create a short description (2-3 sentences) and categorize it.
Return ONLY a JSON object with this structure:
{
"label": "Polished topic title",
"type": "concept", // one of: concept, role, process, fact
"type": "concept", // one of: concept, role, process
"description": "Short description"
}`;