Inquiry About Alternatives to OpenAIEmbeddings for Local Model Support #30077
Unanswered
yanxiaoyin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
I trust this message reaches you in good health.
I am currently working with the langchain_openai library and specifically using the OpenAIEmbeddings class to generate embeddings for my text data. The code I am utilizing looks something like this:
from langchain_openai import OpenAIEmbeddings
embeddings_1024 = OpenAIEmbeddings(model="text-embedding-3-large", dimensions=1024)
However, I have encountered a scenario where I need to use a locally deployed model instead of relying on a remote service. Upon reviewing the documentation and available resources, I have been unable to ascertain whether OpenAIEmbeddings supports local model integration.
My question is: If OpenAIEmbeddings() does not support the use of locally deployed models, what alternative method or class within the langchain_openai library (or any other compatible library) should I consider using to achieve my goal?
I would greatly appreciate any guidance or recommendations you could provide. Thank you for your time and assistance in advance.
Best regards,
System Info
none
Beta Was this translation helpful? Give feedback.
All reactions