TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: PromptL, a templating language designed for LLM prompting

7 pointsby heycesr6 months ago
Hey HN!<p>We just launched PromptL: a templating language built to simplify writing complex prompts for LLMs like GPT-4 and Claude.<p>Why PromptL?<p>Creating dynamic prompts for LLMs can get tricky, even with standardized APIs that use lists of messages and settings. While these formats are consistent, building complex interactions with custom logic or branching paths can quickly become repetitive and hard to manage as prompts grow.<p>PromptL steps in to make this simple. It allows you to define and manage LLM conversations in a readable, single-file format, with support for control flow and chaining, while maintaining compatibility with any LLM API.<p>Key Features<p>- Role-Based Structure: Define prompts with roles (user, system, assistant) for organized conversations.<p>- Control Flow: Add logic with if&#x2F;else and loops for dynamic, responsive prompts.<p>- Chaining Support: Seamlessly link prompts to build multi-step workflows.<p>- Reusable Templates: Modularize prompts for easy reuse across projects.<p>PromptL compiles into a format compatible with any LLM API, making integration straightforward.<p>We created PromptL to make prompt engineering accessible to everyone, not just technical users. It offers a readable, high-level syntax for defining prompts, so you can build complex conversations without wrestling with JSON or extra code. With PromptL, even non-technical users can create advanced prompt flows, while developers benefit from reusable templates and a simple integration process.<p>We’d love to hear your thoughts!

3 comments

adriablancafort6 months ago
This is amazing! At some point someone will have to invent a standard for prompt templating
评论 #42139097 未加载
lunarcave6 months ago
This is very cool. Congrats on the launch.<p>Everybody has their own DSL to do the same thing.
masylum6 months ago
it would be great to integrate with zod, along the lines of python&#x27;s instructor