TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

7 点作者 heycesr6 个月前
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 条评论

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