Skip to content

fix: adjust text analysis prompt to ensure low scored features list - #491

Merged
manuelporrasojeda merged 4 commits into
masterfrom
fix/text_analysis_prompt
Nov 27, 2026
Merged

manuelporrasojeda merged 4 commits into
masterfrom
fix/text_analysis_prompt

Conversation

@manuelporrasojeda

Copy link
Copy Markdown
Contributor
  • Clarified that every characteristic must be evaluated.
  • Changed the low-score condition to strictly below 0.2.
  • Explicitly instructed the model to include only characteristics scoring < 0.2 in the features list.
  • Improved the guidance for calculating overall_match, emphasizing consistency with individual scores and greater weight for significant deficiencies.
  • Added validation to ensure overall_match is a numeric value between 0.0 and 1.0, excluding booleans.

What does this change?

Checklist

  • The title of this pull request follows the convention above
  • docs/ is updated if the change is user-visible

@manuelporrasojeda
manuelporrasojeda requested a review from a team as a code owner November 23, 2026 09:03

@Rcatala18 Rcatala18 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread toolium/utils/ai_utils/text_analysis.py Resolved
@manuelporrasojeda manuelporrasojeda changed the title fix: adjust text analysis prompt fix: adjust text analysis prompt to ensure low scored features list Nov 27, 2026
@manuelporrasojeda
manuelporrasojeda merged commit 63249d3 into master Nov 27, 2026
24 checks passed
@manuelporrasojeda
manuelporrasojeda deleted the fix/text_analysis_prompt branch November 27, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants