Skip to content

A knowledge abstraction middleware that connect the mbaza chatbot to the knowledge base

Notifications You must be signed in to change notification settings

MBAZA-NLP/mbaza-chatbot-knowledge-abstraction-layer

Repository files navigation

KBAL (Knowledge Base Abstraction Layer)

Follow the steps to get the application up and running.

Prerequisites

  • Postgress up and running

Steps for Installation

  1. clone the project:
$ git clone https://github.com/MBAZA-NLP/mbaza-chatbot-knowledge-abstraction-layer.git
  1. Go to inside the created folder:
$ cd mbaza-chatbot-knowledge-base-abstraction-layer/
  1. Install node modules:
$ cd npm install
  1. Create an .env file and past the following:
$ touch .env

add this

INTENT_DB_HOST=[host-of-intent-database]
INTENT_DB_PORT=5432
INTENT_DB_USERNAME=[username-of-intent-database]
INTENT_DB_PASSWORD=[password-of-intent-database]
INTENT_DB_NANE=[name-of-intent-database]
ZAMMAD_DB_HOST=[host-of-zammad-database]
ZAMMAD_DB_PORT=5432
ZAMMAD_DB_USERNAME=[username-of-zammad-database]
ZAMMAD_DB_PASSWORD=[password-of-zammad-database]
ZAMMAD_DB_NAME=[name-of-zammad-database]
PORT=3000
MODE=DEV
RUN_MIGRATIONS=true
DEFAULT_LOCATION=rwanda
  1. Done!

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

For better developer experience, run the server with nodemon by typing:

$ npm run dev

About

A knowledge abstraction middleware that connect the mbaza chatbot to the knowledge base

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages