Skip to content

Commit

Permalink
Add info about setting up RASA_DUCKLING_HTTP_URL environment variable. (
Browse files Browse the repository at this point in the history
  • Loading branch information
OgnjenFrancuski authored Feb 14, 2024
1 parent 62221f9 commit 2627af5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -191,6 +192,7 @@ After you cloned the repository and are authenticated, follow the installation s
```bash
RASA_PRO_LICENSE=<your rasa pro license key>
OPENAI_API_KEY=<your openai api key>
RASA_DUCKLING_HTTP_URL=<url to the duckling server>
```

### Training the bot
Expand Down
2 changes: 1 addition & 1 deletion actions/entity_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 2627af5

Please sign in to comment.