百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

promptuner

> 编程语言
开源

.

100 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

.

Promptuner

Turning small task descriptions into mega prompts automatically ✨

promptuner is an open-source library that converts simple task descriptions into detailed, high-quality prompts for any large language model. With promptuner, even small models can achieve remarkable results by extracting perfect JSON, making function calls, creating structured outputs, and performing complex reasoning and analytical tasks.

Features

  • Automagically Convert Task Descriptions: Turn small task descriptions into professional, detailed prompts effortlessly.
  • Enhanced Performance: Get the most out of your models, even small ones, with fine-tuned prompts.
  • Supports Complex Tasks: Generate prompts for tasks requiring reasoning, chain of thoughts, and other analytical methods.
  • Execute Prompts: Ability to execute the generated prompts for you.

Getting Started

Installation

To install promptuner, use pip:

bash
pip install git+https://github.com/unclecode/promptuner.git

Usage

You may try this Colab

Here's a basic example of how to use promptuner. First make sure to set your Anthropic Api Key in the environment variable ANTHROPIC_API_KEY.

bash
export ANTHROPIC_API_KEY=YOUR_ANTHROPIC_API_KEY

I use Claude only for generating the prompt, which I found better than other models, however you may try other models as well. Specially the recent ones like Llama3.1-70b or Llama3.1-405b.

  1. Create the Prompt
…
  1. Use the Prompt You may simply use the generated prompt, replace the generate variables with the actual values and pass the prompt to your favorite model. Another way is to use the promptuner library to execute the prompt for you.
…

For more examples check the docs/examples folder.

Stay Tuned

We're currently working on detailed documentation and additional features. Please stay tuned as we finalize these resources over the next few days.

Contributing

We welcome contributions from the community. If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

License

promptuner is licensed under the Apache 2.0 License.

Issues· 1 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言