AI Dynamics

Global AI News Aggregator

LangChain Extends Prompt Formatting with Jinja Support

Jinja Formatting Up until now, all the formatting in prompts has been done using Python f-strings But the template_format abstraction is pretty flexible, and @benderville easily extended it to support Jinja, a more advanced formatter Docs: https://
langchain.readthedocs.io/en/latest/exam
ples/prompts/prompt_management.html#Alternative-formats

→ View original post on X — @langchain,

Commentaires

Leave a Reply

Your email address will not be published. Required fields are marked *