mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-09-08 10:14:35 +08:00
feat(go-agent): Ported retrieval node, added Keenable web search tool (#16396)
Ported retrieval node, added Keenable web search tool - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -27,15 +27,15 @@ const (
|
||||
|
||||
// SkillSpace represents a skills space (library) that contains skills
|
||||
type SkillSpace struct {
|
||||
ID string `gorm:"column:id;primaryKey;size:32" json:"id"`
|
||||
TenantID string `gorm:"column:tenant_id;size:32;not null;index" json:"tenant_id"`
|
||||
Name string `gorm:"column:name;size:128;not null" json:"name"`
|
||||
FolderID string `gorm:"column:folder_id;size:32;not null" json:"folder_id"`
|
||||
Description string `gorm:"column:description;type:text" json:"description"`
|
||||
EmbdID string `gorm:"column:embd_id;size:128" json:"embd_id"`
|
||||
RerankID string `gorm:"column:rerank_id;size:128" json:"rerank_id"`
|
||||
TopK int `gorm:"column:top_k;default:10" json:"top_k"`
|
||||
Status string `gorm:"column:status;size:1;default:1" json:"status"`
|
||||
ID string `gorm:"column:id;primaryKey;size:32" json:"id"`
|
||||
TenantID string `gorm:"column:tenant_id;size:32;not null;index" json:"tenant_id"`
|
||||
Name string `gorm:"column:name;size:128;not null" json:"name"`
|
||||
FolderID string `gorm:"column:folder_id;size:32;not null" json:"folder_id"`
|
||||
Description string `gorm:"column:description;type:text" json:"description"`
|
||||
EmbdID string `gorm:"column:embd_id;size:128" json:"embd_id"`
|
||||
RerankID string `gorm:"column:rerank_id;size:128" json:"rerank_id"`
|
||||
TopK int `gorm:"column:top_k;default:10" json:"top_k"`
|
||||
Status string `gorm:"column:status;size:1;default:1" json:"status"`
|
||||
BaseModel
|
||||
}
|
||||
|
||||
@@ -61,12 +61,12 @@ func (s *SkillSpace) StatusDescription() string {
|
||||
// ToMap converts SkillSpace to a map for JSON response
|
||||
func (s *SkillSpace) ToMap() map[string]interface{} {
|
||||
result := map[string]interface{}{
|
||||
"id": s.ID,
|
||||
"tenant_id": s.TenantID,
|
||||
"name": s.Name,
|
||||
"folder_id": s.FolderID,
|
||||
"top_k": s.TopK,
|
||||
"status": s.StatusDescription(),
|
||||
"id": s.ID,
|
||||
"tenant_id": s.TenantID,
|
||||
"name": s.Name,
|
||||
"folder_id": s.FolderID,
|
||||
"top_k": s.TopK,
|
||||
"status": s.StatusDescription(),
|
||||
}
|
||||
|
||||
if s.Description != "" {
|
||||
|
||||
Reference in New Issue
Block a user