ml-knowledge-platform/knowledge_platform/feedback/__init__.py

41 lines
1.1 KiB
Python
Raw Permalink Normal View History

"""Feedback system for continuous learning from user interactions.
Provides logging, storage, and analysis of corrections, low-confidence
validations, and conversation gaps to feed back into the training pipeline.
Includes adaptive prompting based on user interaction patterns.
"""
from .adaptive_prompt import AdaptivePromptBuilder, build_adaptive_prompt
from .analyzer import CorrectionPattern, FeedbackAnalyzer, KnowledgeGap
from .logger import (
CorrectionEvent,
FeedbackLogger,
SearchEvent,
ValidationEvent,
)
from .storage import FeedbackStorage, get_default_storage_path
from .user_stats import CorrectionStats, TopicStats, UserStats, UserStatsTracker
__all__ = [
# Logging
"CorrectionEvent",
"FeedbackLogger",
"SearchEvent",
"ValidationEvent",
# Storage
"FeedbackStorage",
"get_default_storage_path",
# Analysis
"CorrectionPattern",
"FeedbackAnalyzer",
"KnowledgeGap",
# User Stats
"CorrectionStats",
"TopicStats",
"UserStats",
"UserStatsTracker",
# Adaptive Prompting
"AdaptivePromptBuilder",
"build_adaptive_prompt",
]