Skip to content

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

:art: Improve `Add to Database`

Danielb8538772f8fc
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index b2d67e16e6..23dfee0bd9 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -1339,6 +1339,10 @@ func SearchAttributeView(keyword string, excludeAvIDs []string) (ret []*AvSearch
continue
}
+ if gulu.Str.Contains(id, excludeAvIDs) {
+ continue
+ }
+
if nil == avBlockRels[id] {
continue
}