No Core Model found in Rasa API from Docker Compose

Hey everyone,

the following warning occurs:

/opt/venv/lib/python3.10/site-packages/rasa/shared/utils/io.py:99: UserWarning: No core model. Skipping action prediction and execution.

I run a rasa api and action server, both with docker compose. These are the docker files:

Rasa Actions:

FROM rasa/rasa-sdk:latest

USER root

RUN python -m pip install --upgrade pip

WORKDIR /app

ENV HOME=/app

COPY ./rasa/actions /app/actions

Rasa Api:

FROM rasa/rasa:3.6.16-spacy-de

USER root

RUN python -m pip install ‘rasa[full]’

RUN python -m spacy download de_core_news_sm

WORKDIR /app

ENV HOME=/app

COPY ./rasa .

RUN ls

RUN rasa train nlu

USER 1001

CMD [“run”, “–enable-api”]

Docker Compose:

version: ‘3.8’ name: rasa

networks: chat-net: name: chat-net

rasa-api: container_name: rasa build: context: . dockerfile: rasa/Dockerfile ports: - “5005:5005” restart: on-failure networks: - chat-net

rasa-actions-api: container_name: rasa-actions build: context: . dockerfile: rasa/actions/Dockerfile ports: - “5055:5055” restart: on-failure networks: - chat-net

Can anyone help me on this use? This is the log after starting and trying to call the API:

2024-02-16 07:57:14 INFO root - Starting Rasa server on http://0.0.0.0:5005

2024-02-16 07:57:14 INFO rasa.core.processor - Loading model models/nlu-20240216-075631-direct-footing.tar.gz…

2024-02-16 07:57:15 INFO rasa.nlu.utils.spacy_utils - Trying to load SpaCy model with name ‘de_core_news_sm’.

2024-02-16 07:57:18 INFO rasa.nlu.utils.spacy_utils - Trying to load SpaCy model with name ‘de_core_news_sm’.

/opt/venv/lib/python3.10/site-packages/rasa/utils/train_utils.py:530: UserWarning: constrain_similarities is set to False. It is recommended to set it to True when using cross-entropy loss.

rasa.shared.utils.io.raise_warning( 2024-02-16 07:57:38 INFO root - Rasa server is up and running. /opt/venv/lib/python3.10/site-packages/rasa/shared/utils/io.py:99: UserWarning: No core model. Skipping action prediction and execution. More info at Policies

The error message sounds like you have an NLU only model. Are you creating a full model or NLU only model?

Yes i figured it out a day ago:

RUN rasa train nlu should be RUN rasa train. Then it creates a core model and a nlu.