This repository contains a Python-based LLM (Language Model) server. Follow the steps below to set up and run the server locally.
Make sure you have the following installed on your system:
- Python 3
- Python virtual environment (venv)
- Docker (optional)
-
Clone the Repository:
git clone https://github.com/HabeshaCare/ChatBotServer.git cd ChatBotServer -
Run Setup Script: Execute the setup script to install dependencies and set up the virtual environment.
./setup
The server will run on
http://localhost:5000.
Alternatively, you can use Docker to run the server:
-
Build Docker Image:
docker build -t chatbotserver . -
Run Docker Container:
docker run -p 5000:5000 chatbotserver
The server will run on
http://localhost:5000.
The server exposes a single endpoint to ask the LLM:
-
Endpoint:
/ask -
Method: POST
-
Usage: Send a POST request to
http://localhost:5000/askwith a JSON payload containing the question. Example:{ "query": "What is the meaning of life?" }The server will respond with the LLM's answer.