My code below causes the error TypeError: _load_sbert_model() got an unexpected keyword argument 'token' while I try to run it. This is the same code in the documentation for Langchain Instruct Embeddings but I can't seem to get it right.
from langchain_community.embeddings import HuggingFaceInstructEmbeddings, HuggingFaceEmbeddings from langchain.embeddings import HuggingFaceInstructEmbeddings from InstructorEmbedding import INSTRUCTOR from langchain.vectorstores import FAISS
embeddings = HuggingFaceInstructEmbeddings()
TypeError: _load_sbert_model() got an unexpected keyword argument 'token'
I have tried using other text similarity models like sentence-transformers/all-MiniLM-L6-v2 but when I try to run the line FAISS.from_documents(documents=data, embedding=instructor_embeddings) it causes an attribute error