mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 05:23:47 +08:00
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:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user