langchain
langchain copied to clipboard
Support for alternate template engines and syntax (like Jinja)
Hey @hwchase17 ,
I think that plain python string formatter style templates are sometimes too constrained for certain advanced use cases (especially for prompts involving a lot of if/else matching). Could we consider adding support for other alternate template engines as well?
Say jinja for example.
we actually support this already, but i need to beef up the docs
gotcha! feel free to close this until then. Also, can you point me to a source file / function def where this is implemented?
Hi, @creatorrr! I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
From what I understand, you created this issue requesting support for alternate template engines in addition to the current plain python string formatter style templates. There has been some activity on the issue, with @hwchase17 commenting that the support already exists but needs better documentation. You acknowledged this and asked for the source file or function definition where this is implemented.
Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let the LangChain team know by commenting on the issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.
Thank you for your contribution to the LangChain repository! Let us know if you have any further questions or concerns.
@hwchase17 any updates on this? still see nothing about alternate templating engines in the docs. searching doesn't help also