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
- Integrate Sydney
Develop
$ git clone https://github.com/tddschn/langwhat.git
$ cd langwhat
$ poetry install
Credits
- Yihong
- LangChain
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(3.6 kB
view hashes)