Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing PromptTemplate from langchain root module is no longer supported. #11

Open
deter3 opened this issue Sep 28, 2023 · 1 comment

Comments

@deter3
Copy link

deter3 commented Sep 28, 2023

image

pip install -r requirements.txt , and I can see Langchain has almot 500 lines installtion .

And it says " Importing PromptTemplate from langchain root module is no longer supported." , by using pip install -r requirements.txt .

Using Langchain is really a pain in the ass .

@Ashfaqe-oss
Copy link

use this instead :

from langchain.prompts import PromptTemplate

it works for me, atleast as of now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants