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(),