Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added collapse option to clustering #97

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

redhog
Copy link
Collaborator

@redhog redhog commented Oct 11, 2024

Added an optional option collapse to clustering operation. If present, it should be set to a value between 0 and 1. The closer to 1, the shallower the tree of clusters, and the more children each cluster will have. At 0, it is virtually the same as when not present: Each cluster has exactly 2 children.

Note: The summary_prompt template now takes a inputs list parameter, instead of a left and right.

If set to a suitably high number, this greatly improves the cost of the clustering. Whether the resulting flatter tree is desirable is application dependent.

@shreyashankar shreyashankar changed the base branch from main to staging October 12, 2024 19:33
@shreyashankar shreyashankar merged commit e21d316 into ucbepic:staging Oct 12, 2024
1 of 4 checks passed
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.

2 participants