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

How to use text-embedding-3-small with different output dimensions? #2177

Closed
anirban-intel opened this issue Mar 6, 2024 · 1 comment · Fixed by #2215
Closed

How to use text-embedding-3-small with different output dimensions? #2177

anirban-intel opened this issue Mar 6, 2024 · 1 comment · Fixed by #2215
Labels

Comments

@anirban-intel
Copy link

anirban-intel commented Mar 6, 2024

Could you please provide me with information on how to use text-embedding-3-small model with various output dimensions? Also, is there any estimated timeline for this?

Tasks

Preview Give feedback
No tasks being tracked yet.
@github-actions github-actions bot added the triage label Mar 6, 2024
@gramhagen
Copy link
Contributor

I can take a crack at adding this functionality. Expected usage would be like this:

from synapse.ml.services.openai import OpenAIEmbedding

embedding = (
    OpenAIEmbedding()
    .setSubscriptionKey(key)
    .setDeploymentName("text-embedding-3-small")
    .setCustomServiceName(service_name)
    .setApiVersion("2024-03-01-preview")
    .setDimensions(256)
    .setTextCol("prompt")
    .setErrorCol("error")
    .setOutputCol("embeddings")
)

embedding.transform(df)

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

Successfully merging a pull request may close this issue.

2 participants