SelfHostedEmbeddings
class (or any embeddings class from langchain) and then wrap that with the LangChainEmbedding
class from llama_indexembed_model = LangChainEmbedding(SelfHostedEmbeddings(...))
service_context = ServiceContext.from_defaults(embed_model=embed_model)