.
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.
To install promptuner, use pip:
pip install git+https://github.com/unclecode/promptuner.gitHere'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.
export ANTHROPIC_API_KEY=YOUR_ANTHROPIC_API_KEYI 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.
…promptuner library to execute the prompt for you.…For more examples check the docs/examples folder.
We're currently working on detailed documentation and additional features. Please stay tuned as we finalize these resources over the next few days.
We welcome contributions from the community. If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
promptuner is licensed under the Apache 2.0 License.
No open issues yet, or sync has not completed.