MCPcopy
hub / github.com/mudler/LocalAI / Score

Method Score

core/backend/score.go:47–47  ·  view source on GitHub ↗
(ctx context.Context, prompt string, candidates []string)

Source from the content-addressed store, hash-verified

45// for multi-label policy selection.
46type Scorer interface {
47 Score(ctx context.Context, prompt string, candidates []string) ([]CandidateScore, error)
48}
49
50// NewScorer binds (loader, modelConfig, appConfig) into a Scorer. The

Callers 6

ModelScoreFunction · 0.65
inflight_test.goFile · 0.65
ScoreMethod · 0.65
ClassifyMethod · 0.65
ScoreMethod · 0.65

Implementers 13

BackendServicerbackend/python/vllm/backend.py
stubScorercore/http/middleware/route_model_test.
stubScorercore/http/endpoints/localai/router_dec
modelScorercore/backend/score.go
fakeBackendClientcore/services/nodes/health_mock_test.g
fakeGRPCBackendcore/services/nodes/inflight_test.go
InFlightTrackingClientcore/services/nodes/inflight.go
stubScorercore/services/routing/router/score_tes
lazyScorercore/application/router_factories.go
embedBackendpkg/grpc/embed.go
Clientpkg/grpc/client.go
ConnectionEvictingClientpkg/model/connection_evicting_client.g

Calls

no outgoing calls

Tested by

no test coverage detected