Skip to content

feat: Flag for mean pooling text embeddings#384

Merged
pweglik merged 4 commits intomainfrom
@pw/flag-for-mean-pooling-text-embeddings
Jun 12, 2025
Merged

feat: Flag for mean pooling text embeddings#384
pweglik merged 4 commits intomainfrom
@pw/flag-for-mean-pooling-text-embeddings

Conversation

@pweglik
Copy link
Copy Markdown
Contributor

@pweglik pweglik commented Jun 10, 2025

Description

Some models do mean pooling, some don't. We can set flag to take that into account - we should set this flag in all presets for our models while completing: #359

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (improves or adds clarity to existing documentation)

Tested on

  • iOS
  • Android

Related issues

#353

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings They actually do, if users don't set the flag

Additional notes

@pweglik pweglik self-assigned this Jun 10, 2025
Comment thread docs/docs/natural-language-processing/useTextEmbeddings.md Outdated
@pweglik pweglik force-pushed the @pw/flag-for-mean-pooling-text-embeddings branch from 574a8a6 to 6e811f2 Compare June 12, 2025 10:29
@pweglik pweglik force-pushed the @pw/flag-for-mean-pooling-text-embeddings branch from 631702a to 7cc94c6 Compare June 12, 2025 11:00
@pweglik pweglik merged commit 1578d52 into main Jun 12, 2025
3 checks passed
@pweglik pweglik deleted the @pw/flag-for-mean-pooling-text-embeddings branch June 12, 2025 11:01
mkopcins pushed a commit that referenced this pull request Oct 15, 2025
## Description

Some models do mean pooling, some don't. We can set flag to take that
into account - we should set this flag in all presets for our models
while completing:
#359

### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update (improves or adds clarity to existing
documentation)

### Tested on

- [x] iOS
- [x] Android

### Related issues

#353 

### Checklist

- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation accordingly
- [ ] My changes generate no new warnings **They actually do, if users
don't set the flag**

### Additional notes

<!-- Include any additional information, assumptions, or context that
reviewers might need to understand this PR. -->
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