Thanks, do you know how to pass the trust_remote_code=True parameter here? As for now I always get prompet to trust remote code.
I am getting this error:
ValidationError: 1 validation error for HuggingFaceInstructEmbeddings
trust_remote_code
extra fields not permitted
With this code:
from langchain_community.embeddings import HuggingFaceInstructEmbeddings
embeddings = HuggingFaceInstructEmbeddings(model_name="jinaembeddings",trust_remote_code=True,
model_kwargs={'device': 'mps'}, encode_kwargs={'device': 'mps'})