service_context = ServiceContext.from_defaults(llm=llm, embed_model="local:WhereIsAI/UAE-Large-V1")
local
flag, right?embed_model = HuggingFaceEmbedding(model_name="local:WhereIsAI/UAE-Large-V1")
local
, it will download the model againembed_model = HuggingFaceEmbedding(model_name="WhereIsAI/UAE-Large-V1")
should work. Whats the issue?local
flag whenever we are using the local models:embed_model = HuggingFaceEmbedding(model_name="local:WhereIsAI/UAE-Large-V1")
ServiceContext
, otherwise we can add another argument in ServiceContext
and embedding classes, to differ the local models from apisServiceContext
uses the same cache dir with a /models
suffix for some reason