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 Model Parameter to Azure OpenAI Vectorizer Client #1548

Open
ChrisDelClea opened this issue Feb 12, 2025 · 0 comments
Open

Add Model Parameter to Azure OpenAI Vectorizer Client #1548

ChrisDelClea opened this issue Feb 12, 2025 · 0 comments

Comments

@ChrisDelClea
Copy link

ChrisDelClea commented Feb 12, 2025

Similar to this issue: Add Dimension Parameter to Azure OpenAI Vectorizer Client #1445

we also want to specify the model parameter similar to the text2vec_openai .

Cauz as it seems, by default it sets the model to the small version, leading me to an error:

ERROR:root:Error setting up collection: Collection may not have been created properly.! Unexpected status code: 422, with response body: {'error': [{'message': "module 'text2vec-openai': wrong dimensions setting for text-embedding-3-small model, available dimensions are: [512 1536]"}]}.

While in my azure instance i have the large version running, making no sense to get the error .

Confuguration:

Configure.NamedVectors.text2vec_azure_openai(
                    name="chunk_text_vector",
                    source_properties=["chunk_text"],
                    resource_name="genai-xxx",
                    deployment_id="text-embedding-3-large",
                    dimensions=3072,
                   <model='text-embedding-3-large' # allow to add this>
                )
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

1 participant