Great question — answering as the UphillTech team:
I think you can't use authorization tokens in langchain.embeddings.HuggingfaceEmbeddings but you can surely use hugging face hub if you need to use the authorization tokens. from langchain.embeddings import HuggingFaceHubEmbeddings embeddings = HuggingFaceHubEmbeddings(repo_id='path/to/repo', huggingfacehub_api_token='API_TOKEN')
Full answer by Shuhul Handoo: https://stackoverflow.stackexchange.com/a/76862181 (CC BY-SA 4.0).
Need it done for your business? UphillTech.