Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve doc parsing

Daniel3922e484040c
diff --git a/kernel/filesys/json_parser.go b/kernel/filesys/json_parser.go
index 5f9405e325..8b76ff2c6a 100644
--- a/kernel/filesys/json_parser.go
+++ b/kernel/filesys/json_parser.go
@@ -72,6 +72,7 @@ func ParseJSON(jsonData []byte, options *parse.Options) (ret *parse.Tree, needFi
if nil == root.Children {
newPara := &ast.Node{Type: ast.NodeParagraph, ID: ast.NewNodeID()}
newPara.SetIALAttr("id", newPara.ID)
+ newPara.SetIALAttr("updated", newPara.ID[:14])
ret.Root.AppendChild(newPara)
needFix = true
return