add rule generalization, sized LLM defaults, ops docs, and UI polish
Feedback rules can now be suggested for merging when a human has already reviewed the same pattern multiple times (never guesses about new values). LLM defaults sized for constrained VRAM instead of llama3.3/llama3.1. Adds systemd units, a state backup script, and reverse-proxy auth guidance for production deployment. Findings view is collapsible and sorts suggested-review rows to the top for a quicker overview.
This commit is contained in:
@@ -82,6 +82,16 @@ class ConfigTests(unittest.TestCase):
|
||||
public = store.update({"field_confidence_threshold": "not-a-number"})
|
||||
self.assertEqual(public["field_confidence_threshold"], 70)
|
||||
|
||||
def test_feedback_generalization_min_values_is_numeric_and_clamped(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
store = ConfigStore(str(Path(directory) / "config.json"))
|
||||
public = store.update({"feedback_generalization_min_values": "1"})
|
||||
self.assertEqual(public["feedback_generalization_min_values"], 2)
|
||||
public = store.update({"feedback_generalization_min_values": "500"})
|
||||
self.assertEqual(public["feedback_generalization_min_values"], 20)
|
||||
public = store.update({"feedback_generalization_min_values": "5"})
|
||||
self.assertEqual(public["feedback_generalization_min_values"], 5)
|
||||
|
||||
def test_empty_stream_update_does_not_clear_existing_streams(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
store = ConfigStore(str(Path(directory) / "config.json"))
|
||||
|
||||
Reference in New Issue
Block a user