feat: implement automated knowledge graph extraction pipeline and visualization component

This commit is contained in:
RaymondVerhoef
2026-05-20 08:55:27 +02:00
parent 08aaed591f
commit d5655d2232
3 changed files with 35 additions and 7 deletions

View File

@@ -27,7 +27,11 @@ export async function upsertTopic(topic) {
await pb.collection('topics').getOne(topic.id);
return await pb.collection('topics').update(topic.id, topic);
} catch {
return await pb.collection('topics').create({ id: topic.id, ...topic });
return await pb.collection('topics').create({
id: topic.id,
learning_relevance: 'standard',
...topic
});
}
}