Improved classify prompt#1092
Merged
pieroit merged 1 commit intocheshire-cat-ai:developfrom Jun 28, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
StrayCat method
classifysometimes returns incorrect results because LLMs generate verbose explanation in the output instead of just providing the resulting class. From my experience this is true especially with larger and more powerful models, probably too chatty in their cleverness.Just improved the prompt with a little instruction to the LLM to provide simple and parsable output.
Tested with:
llama3.2:3bqwen2.5:7bgemma3:4bgemma3:12bgpt-4.1-nano-2025-04-14gemini-2.5-flash-lite-preview-06-17claude-3-7-sonnet-20250219command-r7b-12-2024Related to issue #1091
Type of change
Checklist: