feat: implement automated knowledge graph extraction pipeline and visualization component
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user