/xoxo

a tiny, exploitable chatbot that can use tools

Primary LanguagePythonMIT LicenseMIT

xoxo.ai

tiny, exploitable chatbot that can use tools

something between chatgpt and perplexity.ai with a toolformer flavour

Setup

  1. Add OpenAI API and Bing Web Search API keys to the environment variables:
set OPENAI_API_KEY=XXX
set BING_SUBSCRIPTION_KEY=XXX

If you don't have Azure account, you can set it up here. Free tier gives you 1k calls per month.

  1. Installation
poetry install 
  1. Run
poetry run python ./xoxo/main.py --user_name YOUR_NAME

Run with docker-compose

  1. git clone the project
  2. copy .env.example from docker to the root of the project and name it .env
  3. put your values into the respective fields in .env file
  4. run the project from the root of the file using docker-compose -f docker/docker-compose.yml build && docker-compose -f docker/docker-compose.yml run xoxo

Ideas for near-term development:

  • flushing conversation history when the max context length is close to being overflown
  • add the local memory ~ cashing and retrieving information from previous conversations
  • ui
  • support other LLMs besides gpt

Contributions welcome !