Skip to content
/ calvin Public

Calvin is a lightweight Python library for common prompts used when interacting with OpenAI's GPT-3.

License

Notifications You must be signed in to change notification settings

pmohun/calvin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

Calvin is a lightweight Python library for common prompts used when interacting with OpenAI's GPT-3.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages