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 dynamic dimensions capability to GPT Embeddings models #40

Closed
converseKarl opened this issue Apr 26, 2024 · 2 comments
Closed

Add dynamic dimensions capability to GPT Embeddings models #40

converseKarl opened this issue Apr 26, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@converseKarl
Copy link

Apparently this can optimize the cost, performance whilst still out performing ada and small gpt models. Adding this will bake in flexibility for future.

See note below

https://platform.openai.com/docs/guides/embeddings/use-cases

@adhityan adhityan added the enhancement New feature or request label May 2, 2024
@adhityan
Copy link
Collaborator

Not all embedding models support dynamic dimensions. I have added it to the OpenAi3LargeEmbeddings model. Simply set the optional parameter dynamicDimension in the constructor. We can also add it to any other embedding model that supports this.

Will be available in the next version published.

@adhityan
Copy link
Collaborator

Included in version 0.0.73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants