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

openai.WithEmbeddingModel option is incorrectly designating the desired model to use for embedding. #729

Closed
Dmarcotrigiano opened this issue Mar 29, 2024 · 1 comment

Comments

@Dmarcotrigiano
Copy link

openai.WithEmbeddingModel("text-embedding-3-large") is incorrectly returning embeddings of length 1536which is the default embedding length for models, "text-embedding-3-small" and "ada-002".
Unintuitively setting the option openai.WithModel("text-embedding-3-large") correctly returns embeddings of length 3072.

devalexandre added a commit to devalexandre/langchaingo that referenced this issue Mar 30, 2024
devalexandre added a commit to devalexandre/langchaingo that referenced this issue Mar 30, 2024
tmc pushed a commit that referenced this issue Mar 31, 2024
…red model to use for embedding (#731)

* chore: issue #729

* chore: issue #729
@tmc
Copy link
Owner

tmc commented Mar 31, 2024

Fixed in #731

@tmc tmc closed this as completed Mar 31, 2024
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

2 participants