Refactor: drop dead canvas runtime selector and tokenizer embedding wiring (#16809)

Two refactors on the Go port (agent-go-port):

- Remove the dead per-tenant canvas runtime selector (write-only Redis
scaffolding with no runtime callers) and its dependent metrics/admin
code.
- Move the tokenizer embedding-model id from the shared ingestion
globals into a Tokenizer-scoped setup, and wire the production embedder
resolver in the ingestion task package.

32 files changed, 861 insertions, 1228 deletions.
This commit is contained in:
Zhichang Yu
2026-07-10 15:46:45 +08:00
committed by GitHub
parent d317742975
commit fb42e5531d
32 changed files with 861 additions and 1228 deletions

View File

@@ -6,7 +6,6 @@ import (
"testing"
"ragflow/internal/entity"
"ragflow/internal/entity/models"
)
func testStrPtr(s string) *string { return &s }
@@ -65,10 +64,7 @@ func newNoopDataflowService(ctx *TaskContext, dataflowID string) (*PipelineExecu
return nil
}).
WithDocService(&stubDocService{}).
WithChunkCounter(&stubChunkCounter{}).
WithGetEmbeddingModelFunc(func(tenantID, embdID string) (*models.EmbeddingModel, error) {
return nil, nil
})
WithChunkCounter(&stubChunkCounter{})
return svc, nil
}
@@ -203,10 +199,7 @@ func TestTaskHandler_Dataflow_ShowsProgressAndPipelineLog(t *testing.T) {
return nil
}).
WithDocService(&stubDocService{}).
WithChunkCounter(&stubChunkCounter{}).
WithGetEmbeddingModelFunc(func(tenantID, embdID string) (*models.EmbeddingModel, error) {
return nil, nil
})
WithChunkCounter(&stubChunkCounter{})
return svc, nil
})