I want to use “BAAI/bge-m3” model with HuggingFaceEmbedding
from LlamaIndex, and I’ve added it to aicrowd.json
{
"repo_id": "BAAI/bge-m3",
"revision": "main"
},
I tried two ways to load this model:
embedding_model = HuggingFaceEmbedding(model_name="BAAI/bge-m3")
embedding_model = HuggingFaceEmbedding(model_name=os.path.expanduser("~/.cache/huggingface/hub/models--BAAI--bge-m3/resolve/main"))
But both attempts failed.
Can you please tell me the default local directory where the model files are downloaded, or the proper way to load a locally cached model with HuggingFaceEmbedding
?
Thanks in advance!