Find answers from the community

Updated last year

Hi I used to use the Prompt from

Hi, I used to use the Prompt.from_langchain_prompt in my code, but it failed recently after I installed the latest version of LlamaIndex. Does anyone have any idea about this? Thanks
L
1 comment
It was removed in favor of a specific class (we are slowly isolating our langchain dependencies, hence the change)

Plain Text
from llama_index.prompts import LangchainPromptTemplate

template = LangchainPromptTemplate(template=my_langchain_template)
Add a reply
Sign up and join the conversation on Discord