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

[Feature Request]: Add dimensions parameter to AzureOpenAIEmbedding #17623

Open
viraj19r opened this issue Jan 25, 2025 · 0 comments
Open

[Feature Request]: Add dimensions parameter to AzureOpenAIEmbedding #17623

viraj19r opened this issue Jan 25, 2025 · 0 comments
Labels
enhancement New feature or request triage Issue needs to be triaged/prioritized

Comments

@viraj19r
Copy link

Feature Description

Currently, the OpenAIEmbedding class supports a dimensions parameter to specify the embedding size, but the AzureOpenAIEmbedding class does not. It would be beneficial to have this option in AzureOpenAIEmbedding as well.

Example Use Case with OpenAIEmbedding:

from llama_index.embeddings.openai import OpenAIEmbedding

embed_model = OpenAIEmbedding(
    model="text-embedding-3-large",
    dimensions=512,
)

embeddings = embed_model.get_text_embedding(
    "Open AI new Embeddings models with different dimensions is awesome."
)
print(len(embeddings))

Reason

No response

Value of Feature

No response

@viraj19r viraj19r added enhancement New feature or request triage Issue needs to be triaged/prioritized labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Issue needs to be triaged/prioritized
Projects
None yet
Development

No branches or pull requests

1 participant