langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Support for alternate template engines and syntax (like Jinja)

Open creatorrr opened this issue 1 year ago • 2 comments

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.

creatorrr avatar Feb 12 '23 07:02 creatorrr

we actually support this already, but i need to beef up the docs

hwchase17 avatar Feb 12 '23 20:02 hwchase17

gotcha! feel free to close this until then. Also, can you point me to a source file / function def where this is implemented?

creatorrr avatar Feb 14 '23 10:02 creatorrr

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.

dosubot[bot] avatar Sep 09 '23 16:09 dosubot[bot]

@hwchase17 any updates on this? still see nothing about alternate templating engines in the docs. searching doesn't help also

hazelnutcloud avatar Jan 25 '24 03:01 hazelnutcloud