plexus.cli.analyze.analysis module
- class plexus.cli.analyze.analysis.PromptAnalysisResult(*, common_mistakes: str, missing_criteria: str, prompt_suggestion: str)
Bases:
BaseModelStructured output for prompt analysis results.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- common_mistakes: str
- missing_criteria: str
- model_config = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- prompt_suggestion: str
- class plexus.cli.analyze.analysis.PromptAnalyzer(llm)
Bases:
object- __init__(llm)
- analyze_feedback(current_prompt: str, examples: list)
- plexus.cli.analyze.analysis.analyze_score_feedback(score_data: DataFrame, prompt_analyzer: PromptAnalyzer, current_prompt: str)
Analyze feedback for a specific score type and suggest prompt improvements.
- plexus.cli.analyze.analysis.analyze_topics(*args, **kwargs)
Lazy wrapper for analyze_topics to avoid loading PyTorch unless needed.