From 2627af591766027739b0270c040bb26a5f2bb9ca Mon Sep 17 00:00:00 2001 From: OgnjenFrancuski Date: Wed, 14 Feb 2024 13:45:08 +0100 Subject: [PATCH] Add info about setting up RASA_DUCKLING_HTTP_URL environment variable. (#8) --- README.md | 2 ++ actions/entity_extractor.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ea42c9d..2a32432 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,7 @@ Prerequisites: `poetry self update` - python (3.10.12), e.g. using [pyenv](https://github.com/pyenv/pyenv) `pyenv install 3.10.12` +- set up and running [Duckling](https://github.com/facebook/duckling) server After you cloned the repository and are authenticated, follow the installation steps: @@ -191,6 +192,7 @@ After you cloned the repository and are authenticated, follow the installation s ```bash RASA_PRO_LICENSE= OPENAI_API_KEY= + RASA_DUCKLING_HTTP_URL= ``` ### Training the bot diff --git a/actions/entity_extractor.py b/actions/entity_extractor.py index 18ff9d0..00ba3d2 100644 --- a/actions/entity_extractor.py +++ b/actions/entity_extractor.py @@ -4,7 +4,7 @@ from rasa.nlu.extractors.duckling_entity_extractor import DucklingEntityExtractor load_dotenv() -duckling_url = os.environ.get("DUCKLING_URL") +duckling_url = os.environ.get("RASA_DUCKLING_HTTP_URL") duckling_config = { **DucklingEntityExtractor.get_default_config(),