Я обнаружил ошибку «Объект HuggingFaceEmbeddings не имеет атрибута show_progress» с кодом:
Код: Выделить всё
qa = ConversationalRetrievalChain.from_llm(
llm = llm,
retriever=retriever,
# memory=memory,
chain_type=chain_type,
return_source_documents=True,
return_generated_question=True,
)
However, I never explicitly installed or used HuggingFace in my script before, so I'm unsure why this error is occurring now. If anyone has insight into how I can resolve this "HuggingFace not installed" error with my current LangChain version (langchain==0.0.292), I would appreciate suggestions on how to fix it.
Источник: https://stackoverflow.com/questions/781 ... lling-lang