This commit is contained in:
alorig
2025-11-09 23:10:10 +05:00
parent 7aad6bfa85
commit 69d58d8bef
4 changed files with 54 additions and 15 deletions

View File

@@ -1053,7 +1053,13 @@ Make sure each prompt is detailed enough for image generation, describing the vi
**kwargs
) -> Dict[str, Any]:
"""
Cluster keywords using AI-based semantic similarity.
[DEPRECATED] Cluster keywords using AI-based semantic similarity.
⚠️ WARNING: This method is deprecated. Use the new AI framework instead:
- New path: views.py -> run_ai_task -> AIEngine -> AutoClusterFunction
- This method uses the old prompt system and does not use PromptRegistry
- Console logging may not work correctly in this path
Based on reference plugin's clustering prompt.
Args:
@@ -1064,6 +1070,7 @@ Make sure each prompt is detailed enough for image generation, describing the vi
Returns:
Dict with 'clusters' (list of cluster dicts with name, description, keywords)
"""
logger.warning("AIProcessor.cluster_keywords is deprecated. Use the new AI framework (AutoClusterFunction) instead.")
if not keywords:
return {
'clusters': [],