Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.36 KB

README.md

File metadata and controls

37 lines (21 loc) · 1.36 KB

calvin

What is it?

calvin is a Python library designed to improve the developer experience when working with pretrained language models. calvin provides prompts for interacting with language models that result in interesting or useful outputs. The purpose of this library is to simplify the learning curve by providing easy to use examples and sample text to get started. Additionally, it has the broader goal of becoming the most comprehensive repository of quality prompts for interacting with language models.

It is named after Susan Calvin, Chief Robopsycologist of US Robots from Asimov's novels.

Main Features

  • A json file with quickstart prompts and hyperparameter settings for common prompts
  • A wrapper for the OpenAI API

Where to get it

The source code is currently hosted on GitHub at: https://github.com/philmohun/calvin

Dependencies

How to use this library

  • Clone locally (pip coming soon) and launch from root directory

import calvin # import package

calvin.initialize(<YOUR-API-KEY>) # set API key

calvin.complete_prompt("Hello, world!")

  • Alternatively, you can use a predefined prompt from our collection.

calvin.complete_predefined_prompt('philosopher')

To see other prompts:

calvin.list_prompts()