Handles communication with GPTs
Project description
GPT Operator
Empower your GPT applications with external operations
GPT Operator (gptop
) acts as a call operator for your application. Provide gptop
with a prompt and it will figure out what external operaton you need to fulfill that prompt and optionally execute that operation on your behalf.
Features
- Execute operations based on a given prompt
- Create, update, and remove operations in vector database
Requirements
- Pinecone Vector Database Index
- OpenAI access to gpt-4
Setup
If you don’t have Python installed, install it from here
-
Clone this repository
-
Navigate into the project directory
$ cd gpt-operator
-
Create a new virtual environment
$ virtualenv virt $ source virt/bin/activate
-
Install the requirements
$ pip install -r requirements.txt
-
Make a copy of the example environment variables file
$ cp .env.example .env
-
Add your OpenAI API key to the newly created
.env
file -
Add your Pinecone API key and Region to the newly created
.env
file
Usage
-
Run the application
$ ./run.sh
To set up an operation on your machine, please see the example.
Contributing
All contributions are welcome! Reach out for more information.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.