bong icon indicating copy to clipboard operation
bong copied to clipboard

ChatGPT with access to the internet

bong

Giving ChatGPT access to the web. The name is definitely not related to any search engine companies.

screenshot

Features

Bong is capable of surfing the web. Currently, it can:

  • Search using SearX
  • Query WolframAlpha for math
  • Get the contents of Wikipedia articles
  • Get a summary of any arbitrary URL

You can run Bong as either a command-line application or as a Discord bot. You can either send the bot a direct message, or specify a channel ID in the env file to have it operate in a guild.

Set up

You need:

  • OpenAI API Key
  • For search, a SearXNG Instance with JSON API enabled (try accessing /search?q=openai&format=json)
    • SearXNG is preferred over SearX as it provides the excertps in the JSON search results.

Copy the .envrc.example file to .envrc, and fill in the fields. You can use direnv to automatically populate your environment, or source the file directly.

# Create venv
python -m venv venv

# Activate venv
source ./venv/bin/activate

# Install requirements
pip install -r requirements.txt

# Load environment variables
source ./.envrc

# Launch CLI
python main.py