Daisy
Data Assimilation In Simple Yaml
Description
This is a Deno server that hosts a chatbot interface for ChatGPT and uses redis in the background to store the active conversations. It uses SocketsIO to rely the message to the user as the LLM is producing it. The goal of this project is to add a simlpe interface to add plugins to ChatGPT in a easy and natural way through “petals” or yaml files that descibe the functionality of the plugin. The petals have yet to be implemented or even architeched, waiting for my next fey mood.
Installation
Prerequisites
Docker Desktop: Make sure Docker is installed on your system. If not, you can download it from the Docker website.
Setup
Create a .env in root of project
OPENAI_API_KEY=<Your OpenAI key>
REDIS_HOST="redis"
REDIS_PORT="6379"Then in terminal run:
docker-compose up
Then you can use Socket IO to interact with the chat bot at http://localhost:3000, the postman blog has an article on how to use postman to interact with Socket IO server.
The SocketIO server has a listener on ‘message’ and emits on ‘response’.