From d6c1813f7576a1116969fc8a20733dc5aa08adb4 Mon Sep 17 00:00:00 2001 From: RaymondVerhoef Date: Wed, 20 May 2026 09:29:16 +0200 Subject: [PATCH] feat: add extractionPipeline to process source text and handbook updates into a structured knowledge graph --- src/lib/extractionPipeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/extractionPipeline.js b/src/lib/extractionPipeline.js index 83d06bb..ea10f75 100644 --- a/src/lib/extractionPipeline.js +++ b/src/lib/extractionPipeline.js @@ -2,9 +2,9 @@ import { anthropicApi } from './api'; import * as db from './db'; 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, and processes, and return them as a structured JSON Knowledge Graph. +You receive a source text. Your task is to extract all core concepts, roles, and processes from the text, 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. -CRITICAL: To ensure the response fits within limits, extract a maximum of 15 key topics and their most important relations. Keep descriptions very concise. +CRITICAL: Extract all relevant topics and roles mentioned in the source text. Keep descriptions very concise. You MUST assign a learning_relevance to each topic: - "core": Fundamental company knowledge.