Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

billierinaldi
Copy link

Description

Prompt tuning errors out when the number of chunks is less than the default LIMIT, saying
"Auto-prompt generation failed: Cannot take a larger sample than population when 'replace=False'"

Proposed Changes

This patch sets the limit to the min of LIMIT and the number of chunks.

Checklist

  • I have tested these changes locally.
  • I have reviewed the code changes.
  • I have updated the documentation (if necessary).
  • I have added appropriate unit tests (if applicable).

@billierinaldi billierinaldi requested a review from a team as a code owner May 28, 2025 20:48
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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.