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

Add support for shortening dimensions in new OpenAI embeddings models #503

Open
tomconte opened this issue Apr 22, 2024 · 0 comments · May be fixed by #502
Open

Add support for shortening dimensions in new OpenAI embeddings models #503

tomconte opened this issue Apr 22, 2024 · 0 comments · May be fixed by #502

Comments

@tomconte
Copy link
Member

tomconte commented Apr 22, 2024

Background: this is a feature request from a customer project.

Recent models from OpenAI allow shortening the embeddings, e.g. with text-embedding-3-large the dimensions can be reduced from 3072 to 256 with still a better performance than ada-002 with 1536 dimensions. This has the potential benefit of reducing the index size (specifically vector space) without impacting performance.

To support this in the accelerator, the additional "dimensions" parameter can be added to the embeddings.create() call in embedding/aoai_embedding_model.py.

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 a pull request may close this issue.

1 participant