Skip to content

Fix instruction handling in few-shot example creation#63

Open
PastelBelem8 wants to merge 2 commits intoautoml:mainfrom
PastelBelem8:main
Open

Fix instruction handling in few-shot example creation#63
PastelBelem8 wants to merge 2 commits intoautoml:mainfrom
PastelBelem8:main

Conversation

@PastelBelem8
Copy link

The ClassificationTask example with the CAPO optimizer is currently not working due. This PR fixes it by checking whether the initial prompt is a string and if so passing it directly to the few-shot procedure. Otherwise it reverts back to the original code.

@PastelBelem8 PastelBelem8 requested a review from mo374z as a code owner February 10, 2026 15:59
Copy link
Collaborator

@finitearth finitearth left a comment

Choose a reason for hiding this comment

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

Thanks for identifying the issue and fixing it. The changes lgtm. In a future version we should add a test making sure it stays fixed.

@PastelBelem8
Copy link
Author

Thank you for the feedback. I'll add a test later today!

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.

3 participants