from llama_index.embeddings.huggingface import HuggingFaceEmbedding
class EmbedData:
def __init__(...):
...
def _load_embed_model(self):
embed_model = HuggingFaceEmbedding(model_name=self.embed_model_name,
trust_remote_code=True,
cache_folder='./hf_cache')
return embed_model