feat: V8.5+ — Morphologisches Keyword-Matching (Snowball GermanStemmer + Levenshtein Fuzzy + Pre-Compute-Cache)

This commit is contained in:
Bernd (Hermes)
2026-07-19 17:13:46 +02:00
parent 7ba62bd7e4
commit 6eb34e11e3
11 changed files with 1151 additions and 74 deletions
+23 -49
View File
@@ -46,55 +46,29 @@ from .routing_telemetry import routing_telemetry
# Constants
ROOM_MAP_PATH = "~/.hermes/hermes-agent/data/room-map.json"
# Use absolute imports instead of relative imports
try:
from classifier import (
ClassificationResult,
EmbeddingClient,
IntentClassifier,
LLMClient,
OllamaLLMClient,
)
from config import (
CONFIDENCE_THRESHOLDS,
OLLAMA_CONFIG,
LLM_CONFIG,
BUTTON_TEMPLATES,
MOVE_REQUEST_TEMPLATE,
ARCHIVAR_STUFE_LOG,
ARCHIVAR_STATE_PATH
)
from doc_store import DocumentationStore
from room_map import RoomMap, RoomMapValidationError
from router import BidirectionalRouter, RoutingDecision
from archivar_state import ArchivarState
from feedback_detector import RoutingWiderspruchDetector, ContradictionResult
except ImportError:
# Fallback for testing or different import structure
from .classifier import (
ClassificationResult,
EmbeddingClient,
IntentClassifier,
LLMClient,
OllamaLLMClient,
)
from .config import (
CONFIDENCE_THRESHOLDS,
OLLAMA_CONFIG,
LLM_CONFIG,
BUTTON_TEMPLATES,
MOVE_REQUEST_TEMPLATE,
ARCHIVAR_STUFE_LOG,
ARCHIVAR_STATE_PATH
)
from .doc_store import DocumentationStore
from .room_map import RoomMap, RoomMapValidationError
from .router import BidirectionalRouter, RoutingDecision
from .archivar_state import ArchivarState
from .room_index import RoomIndexManager
from .booster import KeywordBooster
from .seed_data import SEED_DATA
from .feedback_detector import RoutingWiderspruchDetector, ContradictionResult
from .classifier import (
ClassificationResult,
EmbeddingClient,
IntentClassifier,
LLMClient,
OllamaLLMClient,
)
from .config import (
CONFIDENCE_THRESHOLDS,
OLLAMA_CONFIG,
LLM_CONFIG,
BUTTON_TEMPLATES,
MOVE_REQUEST_TEMPLATE,
ARCHIVAR_STUFE_LOG,
ARCHIVAR_STATE_PATH
)
from .doc_store import DocumentationStore
from .room_map import RoomMap, RoomMapValidationError
from .router import BidirectionalRouter, RoutingDecision
from .archivar_state import ArchivarState
from .room_index import RoomIndexManager
from .booster import KeywordBooster
from .feedback_detector import RoutingWiderspruchDetector, ContradictionResult
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)