Skip to main content

What is it? pyWhat but with LLMs

Project description

langwhat

What is it?

pyWhat LLM version, leveraging OpenAI API and Sydney (coming soon).

Modified from Yihong's iWhat.

Screenshots

Improvements

  • Uses few-shot prompting to reduce model mis-behavior
  • English by default for superior response speed and accuracy

Installation

pipx

This is the recommended installation method.

$ pipx install langwhat

pip

$ pip install langwhat

Usage

First, set your OpenAI API key as an environment variable:

export OPENAI_API_KEY=<sk-XXXX> # replace it with your OpenAI API key

Then start using it by passing any string to the langwhat command.

$ langwhat --help

usage: langwhat [-h] [-z] what

positional arguments:
  what        what is it

options:
  -h, --help  show this help message and exit
  -z, --zh    If use Mandarin to answer

Roadmap

Develop

$ git clone https://github.com/tddschn/langwhat.git
$ cd langwhat
$ poetry install

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langwhat-0.1.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

langwhat-0.1.1-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page