feat: Add Graph Settings component for managing graph extraction configurations

This commit is contained in:
begoniezhao
2025-11-25 16:44:44 +08:00
parent b4ae609103
commit c419049435
9 changed files with 1018 additions and 435 deletions
+4 -4
View File
@@ -197,10 +197,10 @@ func (c *VLMConfig) Scan(value interface{}) error {
type ExtractConfig struct {
Enabled bool `yaml:"enabled" json:"enabled"`
Text string `yaml:"text" json:"text"`
Tags []string `yaml:"tags" json:"tags"`
Nodes []*GraphNode `yaml:"nodes" json:"nodes"`
Relations []*GraphRelation `yaml:"relations" json:"relations"`
Text string `yaml:"text" json:"text,omitempty"`
Tags []string `yaml:"tags" json:"tags,omitempty"`
Nodes []*GraphNode `yaml:"nodes" json:"nodes,omitempty"`
Relations []*GraphRelation `yaml:"relations" json:"relations,omitempty"`
}
// Value implements the driver.Valuer interface, used to convert ExtractConfig to database value