improvements added to rules engine
This commit is contained in:
+17
-7
@@ -1,11 +1,11 @@
|
||||
---
|
||||
title: Getting Started with Madomeda
|
||||
created: '2025-10-23T18:33:48+02:00'
|
||||
changed: '2025-10-23T18:33:48+02:00'
|
||||
authors:
|
||||
- Test User
|
||||
version: 8c4f612
|
||||
status: draft
|
||||
priority: 5
|
||||
published: false
|
||||
tags: []
|
||||
reviewers: []
|
||||
---
|
||||
# Getting Started with Madomeda
|
||||
|
||||
@@ -143,16 +143,23 @@ python madomeda.py --template minimal
|
||||
|
||||
### Add Custom Rule
|
||||
|
||||
1. Create `rules/my_rule.json`:
|
||||
See [RULES_GUIDE.md](RULES_GUIDE.md) for comprehensive rule writing documentation.
|
||||
|
||||
1. Create `~/.config/madomeda/rules/60_my_rule.json`:
|
||||
```json
|
||||
{
|
||||
"name": "my_custom_rule",
|
||||
"description": "Description of what this rule does",
|
||||
"type": "custom"
|
||||
"field": "my_field",
|
||||
"priority": 60,
|
||||
"action": "normalize_value",
|
||||
"pattern": "[^a-z]",
|
||||
"replacement": "",
|
||||
"llm_prompt": "Instructions for LLM"
|
||||
}
|
||||
```
|
||||
|
||||
2. Implement logic in `core/rules.py` (requires code modification)
|
||||
2. Rules are automatically loaded - no code changes needed!
|
||||
|
||||
### Customize LLM Prompt
|
||||
|
||||
@@ -214,6 +221,9 @@ python madomeda.py --template minimal
|
||||
1. Check documentation:
|
||||
- `README.md` - Overview
|
||||
- `USAGE.md` - Detailed examples
|
||||
- `RULES_GUIDE.md` - Writing custom rules
|
||||
- `LITERAL_VALUES.md` - Template literal values
|
||||
- `CONFIGURATION.md` - Configuration options
|
||||
- `STRUCTURE.md` - Architecture
|
||||
- `IMPLEMENTATION.md` - Technical details
|
||||
|
||||
|
||||
Reference in New Issue
Block a user