Kwansi is a library that simplifies the creation and optimization of prompts for language models. Built on top of the DSPy framework, Kwansi helps you utilize DSPy's self-optimization techniques to automatically create prompts tailored to specific tasks.
pip install git+https://github.com/baloise/kwansi.git
import kwansi
# your code here
For an documentation of the functions in kwansi, check out https://github.com/baloise/kwansi/blob/main/docs/usage_guide.md.
For an example implementation of kwansi, check out https://github.com/baloise/kwansi_example (separate repository).
- Python 3.6+
- DSPy
- python-dotenv
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.