Documentation
¶
Index ¶
- Variables
- func CapabilityChart(points []lab.CapabilityPoint) template.HTML
- func CategoryBreakdownWithJudge(points []lab.CapabilityPoint, judgePoints []lab.CapabilityJudgePoint) template.HTML
- func ContentChart(points []lab.ContentPoint) template.HTML
- func DomainChart(stats []lab.DomainStat) template.HTML
- func LossChart(points []lab.LossPoint) template.HTML
- func VoiceChart(stats []lab.VoiceStat) template.HTML
- type APIHandler
- func (h *APIHandler) Agents(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) GoldenSet(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) Health(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) Models(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) Runs(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) Services(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) Status(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) Training(w http.ResponseWriter, r *http.Request)
- type ModelGroup
- type WebHandler
- func (h *WebHandler) Agents(w http.ResponseWriter, r *http.Request)
- func (h *WebHandler) Dashboard(w http.ResponseWriter, r *http.Request)
- func (h *WebHandler) Dataset(w http.ResponseWriter, r *http.Request)
- func (h *WebHandler) Events(w http.ResponseWriter, r *http.Request)
- func (h *WebHandler) GoldenSet(w http.ResponseWriter, r *http.Request)
- func (h *WebHandler) Models(w http.ResponseWriter, r *http.Request)
- func (h *WebHandler) Runs(w http.ResponseWriter, r *http.Request)
- func (h *WebHandler) Services(w http.ResponseWriter, r *http.Request)
- func (h *WebHandler) Training(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticFS embed.FS
Functions ¶
func CapabilityChart ¶
func CapabilityChart(points []lab.CapabilityPoint) template.HTML
CapabilityChart generates an SVG horizontal bar chart for capability scores.
func CategoryBreakdownWithJudge ¶
func CategoryBreakdownWithJudge(points []lab.CapabilityPoint, judgePoints []lab.CapabilityJudgePoint) template.HTML
CategoryBreakdownWithJudge generates an HTML table showing per-category capability scores. When judge data is available, shows 0-10 float averages. Falls back to binary correct/total.
func ContentChart ¶
func ContentChart(points []lab.ContentPoint) template.HTML
ContentChart generates an SVG multi-line chart for content scores by dimension.
func DomainChart ¶
func DomainChart(stats []lab.DomainStat) template.HTML
DomainChart renders a horizontal bar chart of domain counts (top 25).
Types ¶
type APIHandler ¶
type APIHandler struct {
// contains filtered or unexported fields
}
func NewAPIHandler ¶
func NewAPIHandler(s *lab.Store) *APIHandler
func (*APIHandler) Agents ¶
func (h *APIHandler) Agents(w http.ResponseWriter, r *http.Request)
func (*APIHandler) GoldenSet ¶
func (h *APIHandler) GoldenSet(w http.ResponseWriter, r *http.Request)
func (*APIHandler) Health ¶
func (h *APIHandler) Health(w http.ResponseWriter, r *http.Request)
func (*APIHandler) Models ¶
func (h *APIHandler) Models(w http.ResponseWriter, r *http.Request)
func (*APIHandler) Runs ¶
func (h *APIHandler) Runs(w http.ResponseWriter, r *http.Request)
func (*APIHandler) Services ¶
func (h *APIHandler) Services(w http.ResponseWriter, r *http.Request)
func (*APIHandler) Status ¶
func (h *APIHandler) Status(w http.ResponseWriter, r *http.Request)
func (*APIHandler) Training ¶
func (h *APIHandler) Training(w http.ResponseWriter, r *http.Request)
type ModelGroup ¶
type ModelGroup struct {
Model string
TrainingRuns []lab.TrainingRunStatus
BenchmarkRuns []lab.BenchmarkRun
HasTraining bool
HasContent bool
HasCapability bool
BestStatus string // best training status: complete > training > pending
}
ModelGroup gathers all runs and data for a single model name.
type WebHandler ¶
type WebHandler struct {
// contains filtered or unexported fields
}
func NewWebHandler ¶
func NewWebHandler(s *lab.Store) *WebHandler
func (*WebHandler) Agents ¶
func (h *WebHandler) Agents(w http.ResponseWriter, r *http.Request)
func (*WebHandler) Dashboard ¶
func (h *WebHandler) Dashboard(w http.ResponseWriter, r *http.Request)
func (*WebHandler) Dataset ¶
func (h *WebHandler) Dataset(w http.ResponseWriter, r *http.Request)
func (*WebHandler) Events ¶
func (h *WebHandler) Events(w http.ResponseWriter, r *http.Request)
Events is an SSE endpoint that pushes "update" events when store data changes.
func (*WebHandler) GoldenSet ¶
func (h *WebHandler) GoldenSet(w http.ResponseWriter, r *http.Request)
func (*WebHandler) Models ¶
func (h *WebHandler) Models(w http.ResponseWriter, r *http.Request)
func (*WebHandler) Runs ¶
func (h *WebHandler) Runs(w http.ResponseWriter, r *http.Request)
func (*WebHandler) Services ¶
func (h *WebHandler) Services(w http.ResponseWriter, r *http.Request)
func (*WebHandler) Training ¶
func (h *WebHandler) Training(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.