feat: quality gate — score and filter knowledge entries (#198) #208
Reference in New Issue
Block a user
Delete Branch "fix/198-quality-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #198
Quality gate for knowledge entries — scores and filters low-value entries.
Scoring dimensions (weighted):
Usage:
CLI:
Tests:
tests/test_quality_gate.py— 14 tests passing.quality_gate.py: 4-dimension scoring (0.0-1.0): specificity (0.3): concrete examples vs vague actionability (0.3): can this be used? freshness (0.2): exponential decay over time source_quality (0.2): model reliability score filter_entries(entries, threshold=0.5) quality_report() — distribution + pass rate CLI: --threshold, --json, --filter tests/test_quality_gate.py: 14 tests specificity: specific high, vague low, empty baseline actionability: actionable high, abstract low freshness: recent high, old low, none baseline source: claude high, ollama low, unknown default entry: good high, poor low filter: removes low quality