Closed devesh-2002 closed 1 day ago
From the docs, Integration with langchain. I was trying to install via the docs :
! python -m pip install --upgrade pymilvus langchain langchain-core langchain-community langchain-openai langchain_text_splitters openai tiktoken
but it gave error
ModuleNotFoundError: No module named 'bs4'
Also, the second issue, we have imported ChatPromptTemplate, while used PromptTemplate, so it gave an error.
ChatPromptTemplate
PromptTemplate
NameError: name 'PromptTemplate' is not defined
Should I rectify these errors in the docs?
For the first issue I had to install bs4. For second issue I changed :
bs4
from langchain_core.prompts import ChatPromptTemplate
to
from langchain_core.prompts import PromptTemplate
No response
/assign @zc277584121 can you help troubleshoot this issue? thanks in advance!
@devesh-2002 Thank you for your suggestion. We have updated this document and these issues have currently been solved.
Is there an existing issue for this?
Issue
From the docs, Integration with langchain. I was trying to install via the docs :
but it gave error
Also, the second issue, we have imported
ChatPromptTemplate
, while usedPromptTemplate
, so it gave an error.Should I rectify these errors in the docs?
Suggestion
For the first issue I had to install
bs4
. For second issue I changed :to
Anything else?
No response