jpmanson/llm_templates

Instruction/chat prompts creation library for text generation LLMs. It supports local and Hugging Face models.

38
/ 100
Emerging

This tool helps developers correctly format chat conversations for large language models (LLMs) like Llama, Mistral, and Gemma. You provide a list of messages, each with a role (user, assistant) and content, and it outputs a single string formatted precisely as the LLM expects. This ensures your LLM applications perform as intended, preventing common errors due to incorrect input formatting.

No commits in the last 6 months. Available on PyPI.

Use this if you are a developer building applications with various LLMs and need a reliable way to format chat prompts to match each model's specific training format.

Not ideal if you are an end-user looking for a no-code solution to interact with LLMs, or if you only work with a single LLM and already handle its specific prompt formatting manually.

LLM development prompt engineering conversational AI NLP applications model integration
Stale 6m
Maintenance 2 / 25
Adoption 7 / 25
Maturity 25 / 25
Community 4 / 25

How are scores calculated?

Stars

33

Forks

1

Language

Python

License

MIT

Last pushed

May 21, 2025

Commits (30d)

0

Dependencies

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/jpmanson/llm_templates"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.