guideaudit

package
v0.7.114 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package guideaudit runs a fixed set of guide-type questions through the ask pipeline and records verdicts: pages read, whether the key facts appear, whether Sources is present, the Tactics label and the time taken. It stores phrases and verdicts only, never page text. See docs/guide-audit.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByCategory

func ByCategory(rs []Result) string

ByCategory is the pass rate per category as a Markdown table, categories in order of first appearance.

func Categories

func Categories(es []Entry) []string

Categories lists the distinct categories, sorted.

func FactsIn

func FactsIn(answer string, facts []string) int

FactsIn counts the phrases found in the answer, ignoring case.

func Table

func Table(rs []Result) string

Table is the Markdown results table: one row per question, verdicts only.

func TacticsLabel

func TacticsLabel(footer string) string

TacticsLabel is the source label of the footer ("Tactics: guides"), "" when it has none.

Types

type Entry

type Entry struct {
	ID, Category, Question string
	Facts                  []string
}

Entry is one question and the short phrases a correct answer contains.

func Parse

func Parse(r io.Reader) ([]Entry, error)

Parse reads the question file: a list of "- id:" entries with category, question and a flow list of quoted facts, and "#" comment lines. It is a small subset of YAML, enough for this one file.

type Result

type Result struct {
	Entry
	Lookup     bool // the pipeline offered guide pages for this question
	Pages      int  // guide pages read (offline runs: 0)
	FactsFound int
	Sources    bool
	Tactics    string // "guides", "general WoW knowledge" or ""
	Took       time.Duration
	Err        string
}

Result is the verdict for one question.

func (Result) Pass

func (r Result) Pass() bool

Pass is true when every key fact appeared, and when the answer read pages it names them in Sources.

Directories

Path Synopsis
Command cmd is `make guide-audit`: it runs the question set in internal/ask/testdata/guide_audit.yaml through the real ask pipeline with guide lookups on, using the configured API client and the live guide sites, and writes the verdict table.
Command cmd is `make guide-audit`: it runs the question set in internal/ask/testdata/guide_audit.yaml through the real ask pipeline with guide lookups on, using the configured API client and the live guide sites, and writes the verdict table.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL