Объект HuggingFaceEmbeddings не имеет атрибута show_progress при вызове LangChain ConversationalRetrivalChain.Python

Программы на Python
Гость
Объект HuggingFaceEmbeddings не имеет атрибута show_progress при вызове LangChain ConversationalRetrivalChain.

Сообщение Гость »


Я обнаружил ошибку «Объект 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,
)
The code worked before so I guess this error occurred due to some version incompatibility.
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

Вернуться в «Python»