/Simple-Command-Line-Chat-Tool-Go

A simple chat tool build with Go and the Cohere API

Primary LanguageGo

Arrgh-I: Your Pirate AI Chatbot

Arrgh-I is a simple but entertaining text-based chatbot powered by the Cohere AI language model. They'll answer your questions but with a healthy dose of pirate-y sass.

Prerequisites

  • A Cohere AI account and API key. A free trial is fine for this simple implementation.
  • The Go programming language installed (https://go.dev/)

Setup

  1. Clone this repository: https://github.com/mischegoss/Simple-Command-Line-Chat-Tool-Go.git

  2. Create a .env file in the project directory and add the following line, replacing YOUR_API_KEY with your actual Cohere API key:

COHERE_KEY=YOUR_API_KEY
  1. Install dependencies using go get command

  2. Run code in command line using go run main.go.

How to Interact

Type your questions after the prompt and press Enter. The program will end when you type 'n' at the "Do you have another question?" prompt.

Notes:

This project is a very simple chatbot for demonstration purposes, it uses the Cohere AI Chat endpoint.