Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info about setting up RASA_DUCKLING_HTTP_URL environment variable. #8

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading