mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
feat: remove core nlu engine
This commit is contained in:
@@ -46,21 +46,6 @@ EMAIL_SMTP_USER=dev_only
|
||||
EMAIL_SMTP_PASS=dev_only
|
||||
EMAIL_SMTP_FROM=noreply@example.com
|
||||
|
||||
# NLU Server
|
||||
AUTH_TOKEN=token123
|
||||
LANGUAGE_CLASSIFIER=language-classifier
|
||||
INTENT_CLASSIFIERS=en,fr
|
||||
TFLC_REPO_ID=Hexastack/tflc
|
||||
INTENT_CLASSIFIER_REPO_ID=Hexastack/intent-classifier
|
||||
SLOT_FILLER_REPO_ID=Hexastack/slot-filler
|
||||
NLU_ENGINE_PORT=5000
|
||||
BERT_MODEL_BY_LANGUAGE_JSON='{
|
||||
"en": "bert-base-cased",
|
||||
"fr": "dbmdz/bert-base-french-europeana-cased"
|
||||
}'
|
||||
# Huggingface Access token to download private models for NLU inference
|
||||
HF_AUTH_TOKEN=
|
||||
|
||||
# Frontend (Next.js)
|
||||
NEXT_PUBLIC_API_ORIGIN=http://${APP_DOMAIN}:${API_PORT}/
|
||||
NEXT_PUBLIC_SSO_ENABLED=false
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
nlu-api:
|
||||
build:
|
||||
context: ../nlu
|
||||
dockerfile: Dockerfile
|
||||
pull_policy: build
|
||||
ports:
|
||||
- ${NLU_ENGINE_PORT}:5000
|
||||
@@ -1,30 +0,0 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
api:
|
||||
networks:
|
||||
- nlu-network
|
||||
depends_on:
|
||||
nlu-api:
|
||||
condition: service_healthy
|
||||
|
||||
nlu-api:
|
||||
container_name: nlu-api
|
||||
image: hexastack/hexabot-nlu:latest
|
||||
env_file: .env
|
||||
networks:
|
||||
- nlu-network
|
||||
volumes:
|
||||
- nlu-data:/app/repos
|
||||
healthcheck:
|
||||
test: curl --fail http://localhost:5000/health || exit 1
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 10s
|
||||
|
||||
volumes:
|
||||
nlu-data:
|
||||
|
||||
networks:
|
||||
nlu-network:
|
||||
Reference in New Issue
Block a user