Go: fix list services (#17664)

### Summary

1. Fix admin list services;
2. Fix admin show service 'service_name';

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-08-01 14:52:37 +08:00
committed by GitHub
parent 776b9371f7
commit 26a5af8b83
19 changed files with 262 additions and 329 deletions

View File

@@ -66,14 +66,14 @@ type DocEngine interface {
GetAggregation(chunks []map[string]interface{}, fieldName string) []map[string]interface{}
GetHighlight(chunks []map[string]interface{}, keywords []string, fieldName string) map[string]string
// Run SQL
// RunSQL runs a SQL query
RunSQL(ctx context.Context, tableName string, sqlText string, kbIDs []string, format string) ([]map[string]interface{}, error)
GetChunkIDs(chunks []map[string]interface{}) []string
KNNScores(ctx context.Context, chunks []map[string]interface{}, queryVector []float64, topK int) (map[string]interface{}, error)
GetScores(searchResult map[string]interface{}) map[string]float64
// Health check
// Ping check the engine is alive
Ping(ctx context.Context) error
Close() error
@@ -101,6 +101,7 @@ func Type(docEngine DocEngine) EngineType {
type MessageQueue interface {
Init() error
Type() string
InitConsumer(subject string) error
PublishTask(subject string, payload []byte) error
GetMessages(messageCount int) ([]common.TaskHandle, error)