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

Support variable length embeddings #73

Closed
adri1wald opened this issue Jan 26, 2024 · 3 comments
Closed

Support variable length embeddings #73

adri1wald opened this issue Jan 26, 2024 · 3 comments

Comments

@adri1wald
Copy link

adri1wald commented Jan 26, 2024

Describe the feature or improvement you're requesting

From the blog on new embedding models:

Both of our new embedding models were trained with a technique that allows developers to trade-off performance and cost of using embeddings. Specifically, developers can shorten embeddings (i.e. remove some numbers from the end of the sequence) without the embedding losing its concept-representing properties by passing in the dimensions API parameter. For example, on the MTEB benchmark, a text-embedding-3-large embedding can be shortened to a size of 256 while still outperforming an unshortened text-embedding-ada-002 embedding with a size of 1536.

Based on the API reference, this is available via a new parameter on the embedding request called dimensions (optional integer).

Additional context

I'm happy to write a PR for this.

@dongri
Copy link
Owner

dongri commented Jan 26, 2024

@adri1wald PR please

@dongri
Copy link
Owner

dongri commented Jan 28, 2024

@dongri
Copy link
Owner

dongri commented Feb 6, 2024

#74

@dongri dongri closed this as completed Feb 6, 2024
ra0x3 added a commit to ra0x3/openai-rst that referenced this issue May 3, 2024
* fix: add footer spacing

* updates
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

No branches or pull requests

2 participants