This chatbot helps answer questions about information, regulations, and policies of NCC company.
-
Copy .env.example to .env and fill it with your api key.
-
Open a terminal. Navigate to the directory containing chatbot_service.sh.
-
Run the following command to execute chatbot_service.sh:
./chatbot_service.sh -p 1500 -host 0.0.0.0
-p and -host are optional parameters to set up the port and server for the application. If not provided, the default port is 1500 and the default host is 0.0.0.0.
Note:
Before running the above command, you may need to grant execute permission to chatbot_service.sh using the chmod +x chatbot_service.sh
command.
-
After running chatbot_service.sh, the server will be started.
-
To check status or stop the service, you can use the sudo systemctl stop command:
Check status the service
sudo systemctl status chatbot.service
Stop the service
sudo systemctl stop chatbot.service
- If you wish to add new information data to the project, follow these steps:
- Run your service.
- Ensure that the new data files, in .docx format, are placed within the /data directory of the project.
- The service will automatically restart. The system will process the new data files and update the internal database.