Spaces:
Sleeping
Sleeping
| """ | |
| LLEGO Genetic Operators for GEPA. | |
| This module provides genetic operators for prompt optimization: | |
| - FitnessGuidedCrossover: Combines high-performing prompts | |
| - DiversityGuidedMutation: Explores diverse variations | |
| - LLEGOIntegrationLayer: Manages the genetic algorithm workflow | |
| Based on: Decision Tree Induction Through LLMs via Semantically-Aware Evolution (ICLR 2025) | |
| """ | |
| # Base interfaces (SOLID: Interface Segregation) | |
| from .base_operator import ( | |
| BaseGeneticOperator, | |
| BaseCrossoverOperator, | |
| BaseMutationOperator, | |
| ) | |
| # Data models | |
| from .models import ( | |
| PromptCandidate, | |
| PromptMetadata, | |
| ) | |
| # Concrete operators (SOLID: Single Responsibility) | |
| from .crossover import FitnessGuidedCrossover | |
| from .mutation import DiversityGuidedMutation | |
| # Integration layer | |
| from .llego_operators import LLEGOIntegrationLayer | |
| __all__ = [ | |
| # Base interfaces | |
| 'BaseGeneticOperator', | |
| 'BaseCrossoverOperator', | |
| 'BaseMutationOperator', | |
| # Data models | |
| 'PromptCandidate', | |
| 'PromptMetadata', | |
| # Operators | |
| 'FitnessGuidedCrossover', | |
| 'DiversityGuidedMutation', | |
| # Integration | |
| 'LLEGOIntegrationLayer', | |
| ] | |