HornChat is a chatbot built with a combination of Large Language Models(GPT) and Translation Systems(Lesan AI) to solve the linguistic barriers of low-resource languages specifically Horn of Africa languages.
## HornChat
**HornChat** is a chatbot built with a combination of **Large Language Models(LLM)** and **Translation Systems** to solve linguistic problems of low-resource languages, currently _Tigrinya_ and _Amharic_.
## Deploy
**Vercel**
Host
**Docker**
Build locally:
```shell
docker build -t chatgpt-ui .
docker run -e OPENAI_API_KEY=xxxxxxxx -p 3000:3000 chatgpt-ui
```
## Running Locally
**1. Clone Repo**
```bash
git clone
github.com
```
**2. Install Dependencies**
```bash
npm i
```
**3. Provide Translaton key**
Create a `.env.local` file in the root of the project and add the following in to it:
```bash
LESAN_API_URL=
api.lesan.ai
LESAN_API_KEY=YOUR_LESAN_API_KEY
```
**4. Provide OpenAI API Key**
And add the following OPENAI keys
```bash
OPENAI_API_TYPE=openai
OPENAI_API_HOST=
api.openai.com
OPENAI_API_KEY=YOUR_OPENAI_KEY
OPENAI_API_VERSION='2023-03-15-preview'
```
**5. Provide MongoDB URL**
Add the following in to your `.env.local` file
```bash
MONGODB_URI=mongodb+srv://negasi:Goa3sixMQsxgLUGC@
hornchat-v01.ogqsg0j.mongod…
```
> **[!NOTE]**
> If you need to use your own credentials, Please replace my MongoDB credentials with your own like the following
```bash
MONGODB_URI=mongodb+srv://YOUR_USER_NAME:YOUR_PASSWORD@
hornchat-v01.ogqsg0j.mongod…
```
**5. Run App**
**A. For use only**
```bash
npm run build
```
Then
```bash
npm run start
```
**B. For development (If you need to make a change on the codebase and see your results)**
```bash
npm run dev
```
> **[!NOTE]**
> If you use the first option you will experiance a better performance (Fast page rendering and Fast response)
**6. Use It**
You should be able to start chatting.
## Configuration
When deploying the application, the following environment variables can be set:
| Environment Variable | Default value …