# olivia **Repository Path**: colinguo/olivia ## Basic Information - **Project Name**: olivia - **Description**: Olivia 是带有人工神经网络的人工智能聊天机器人 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 12 - **Created**: 2019-12-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
Website • Getting started • Documentation • Projects • Video • License
## Getting started ### Installation Clone Olivia from the master branch of Github repository ```bash git clone https://github.com/olivia-ai/olivia.git ``` Then go inside the project and install the dependencies ```bash cd olivia # Install the dependencies with dep (https://github.com/golang/dep) dep ensure ``` And run the application ```bash go run main.go ``` The Websocket is now listening on the port `8080`, to change it just set it inside the environment variable `PORT` The app will automatically check for `res/training.json` file which contains the save of the neural network. By default when you clone the repository from Github you have a stable save. If you want to train a new model just delete this file and rerun the app. ### How to use Connect to `wss://olivia-api.herokuapp.com/` and send a JSON message like this ```json { "content": "Hello!", "authorid": "129390230" } ``` and the websocket will respond you with ```json { "content": "Good morning!", "tag": "hello" } ``` ## License [](https://app.fossa.io/projects/git%2Bgithub.com%2Folivia-ai%2Folivia?ref=badge_large)Made with ❤️ by Hugo Lageneste
