Major improvements to AI content generation: ## New Components (app/services/ai/) - PromptLibrary: YAML-based prompt templates with inheritance - ContextEngine: Anti-repetition and best performers tracking - ContentGeneratorV2: Enhanced generation with dynamic parameters - PlatformAdapter: Platform-specific content adaptation - ContentValidator: AI-powered quality scoring (0-100) ## Prompt Library (app/prompts/) - 3 personalities: default, educational, promotional - 5 templates: tip_tech, product_post, service_post, thread, response - 4 platform configs: x, threads, instagram, facebook - Few-shot examples by category: ia, productividad, seguridad ## Database Changes - New table: content_memory (tracks generated content) - New columns in posts: quality_score, score_breakdown, generation_attempts ## New API Endpoints (/api/v2/generate/) - POST /generate - Generation with quality check - POST /generate/batch - Batch generation - POST /quality/evaluate - Evaluate content quality - GET /templates, /personalities, /platforms - List configs ## Celery Tasks - update_engagement_scores (every 6h) - cleanup_old_memory (monthly) - refresh_best_posts_yaml (weekly) ## Tests - Comprehensive tests for all AI engine components Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
54 lines
779 B
Plaintext
54 lines
779 B
Plaintext
# FastAPI y servidor
|
|
fastapi==0.109.0
|
|
uvicorn[standard]==0.27.0
|
|
python-multipart==0.0.6
|
|
|
|
# Base de datos
|
|
sqlalchemy==2.0.25
|
|
psycopg2-binary==2.9.9
|
|
alembic==1.13.1
|
|
|
|
# Celery y Redis
|
|
celery==5.3.6
|
|
redis==5.0.1
|
|
flower==2.0.1
|
|
|
|
# HTTP Client
|
|
httpx==0.26.0
|
|
aiohttp==3.9.1
|
|
|
|
# APIs de Redes Sociales
|
|
tweepy==4.14.0 # X/Twitter
|
|
|
|
# IA
|
|
openai==1.10.0 # Compatible con DeepSeek API
|
|
|
|
# Imágenes
|
|
Pillow==10.2.0
|
|
html2image==2.0.4.3
|
|
|
|
# Utilidades
|
|
python-dotenv==1.0.0
|
|
PyYAML==6.0.1
|
|
pydantic==2.5.3
|
|
pydantic-settings==2.1.0
|
|
python-jose[cryptography]==3.3.0
|
|
passlib[bcrypt]==1.7.4
|
|
bcrypt==4.0.1
|
|
|
|
# Estadísticas (A/B Testing)
|
|
scipy==1.11.4
|
|
|
|
# Templates HTML
|
|
jinja2==3.1.3
|
|
|
|
# Testing
|
|
pytest==7.4.4
|
|
pytest-asyncio==0.23.3
|
|
pytest-cov==4.1.0
|
|
|
|
# Desarrollo
|
|
black==24.1.1
|
|
isort==5.13.2
|
|
flake8==7.0.0
|