# Only NLU for RasaX

**URL:** <https://forum.rasa.com/t/only-nlu-for-rasax/25385>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [February 28, 2020, 6:21am UTC](https://forum.rasa.com/t/only-nlu-for-rasax/25385 "2020-02-28T06:21:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![krish](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/krish/32/7362_2.png) [@krish](https://forum.rasa.com/u/krish)\
**Post date:** [February 28, 2020, 6:21am UTC](https://forum.rasa.com/t/only-nlu-for-rasax/25385/1 "2020-02-28T06:21:44Z")

</div>

My application does not have a conversation flow, We are just doing a one-time message analysis. I just want to use only NLU option. However, not able to expose the model/parse option for RasaX. Then how can we capture/log for those messages from the users and used for further training?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [February 28, 2020, 12:37pm UTC](https://forum.rasa.com/t/only-nlu-for-rasax/25385/2 "2020-02-28T12:37:01Z")

</div>

Hi @krish, the endpoint you are looking for is the `/logs` endpoint, which is the one that interacts with the Annotate new data page. That endpoint acts the same as the model/parse enpoint, but also creates a log in the Annotate new data so that you can look at all of the messages and save/fix them as necessary.

[https://rasa.com/docs/rasa-x/api/rasa-x-http-api/#operation/parseText](https://rasa.com/docs/rasa-x/api/rasa-x-http-api/#operation/parseText)

---

<div class="post-metadata">

**Author:** ![krish](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/krish/32/7362_2.png) [@krish](https://forum.rasa.com/u/krish)\
**Post date:** [February 28, 2020, 1:07pm UTC](https://forum.rasa.com/t/only-nlu-for-rasax/25385/3 "2020-02-28T13:07:40Z")

</div>

I added `--enable-api` into `docker-compose.yml` file,

![00%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/1931dc39936c3092241a075dae4e8dd21b76bcd1.png)

but I’m not able to access `http://mydomain/api/model/parse`. It says `not found`. However, in the local mode of rasa x, I’m able to access it. For local mode I run `rasa x --enable-api --cors "*"` and able to access it from `http://localhost:5005/model/parse`

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [February 28, 2020, 1:12pm UTC](https://forum.rasa.com/t/only-nlu-for-rasax/25385/4 "2020-02-28T13:12:34Z")

</div>

As I mentioned, you should use the /logs endpoint for this, not the /model/parse. It will do the same thing. You could hit the parse endpoint via a redirect, but then you won’t get any of that information in rasa x.

---

<div class="post-metadata">

**Author:** ![DevSharkOne](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/devsharkone/32/7950_2.png) [@DevSharkOne](https://forum.rasa.com/u/DevSharkOne)\
**Post date:** [March 28, 2020, 4:30am UTC](https://forum.rasa.com/t/only-nlu-for-rasax/25385/5 "2020-03-28T04:30:23Z")

</div>

Hello, @krish you can check [HTTP API](https://rasa.com/docs/rasa-x/api/rasa-x-http-api/#operation/parseText)

---

<div class="post-metadata">

**Author:** ![ganeshv](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ganeshv/32/4644_2.png) [@ganeshv](https://forum.rasa.com/u/ganeshv)\
**Post date:** [April 20, 2021, 1:22pm UTC](https://forum.rasa.com/t/only-nlu-for-rasax/25385/6 "2021-04-20T13:22:42Z")

</div>

Hello @erohmensing - I had a follow-up question to this.

Let’s say, that I too have an NLU only model served on a Rasa Open Source server. If I connect a Rasa X instance to this deployed bot, [using the live monitor feature of Rasa X](https://rasa.com/docs/rasa-x/installation-and-setup/deploy#2-connect-a-live-rasa-open-source-deployment), which API method/endpoint should I use to pass messages to the Rasa Open Source server?

If I use `model/parse` for the Rasa Open Source server to pass an unlabeled utterance, as indicated on this [page](https://rasa.com/docs/rasa/nlu-only-server), would the labeled utterance automatically show up in the connected Rasa X instance, for review?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [April 21, 2021, 7:32am UTC](https://forum.rasa.com/t/only-nlu-for-rasax/25385/7 "2021-04-21T07:32:57Z")

</div>

Messages will only get to the connected model server if they go through a core model, since the Agent is resposible for sending the events through an event broker. `/model/parse` only returns parse data and does not create any events.

If you would like to use NLU only and get entries in your NLU inbox, I would still recommend the /logs endpoint on the Rasa X server (and host your model in `rasa-production`).

---

<div class="post-metadata">

**Author:** ![lucas144](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lucas144/32/20432_2.png) [@lucas144](https://forum.rasa.com/u/lucas144)\
**Post date:** [January 9, 2023, 2:39pm UTC](https://forum.rasa.com/t/only-nlu-for-rasax/25385/8 "2023-01-09T14:39:02Z")

</div>

Is it possible then to call /model/parse from a deployment done with Rasa-X? It’s not working to me, whereas locally it does work.

Can anybody help?

---

<div class="post-metadata">

**Author:** ![lucas144](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lucas144/32/20432_2.png) [@lucas144](https://forum.rasa.com/u/lucas144)\
**Post date:** [January 9, 2023, 2:40pm UTC](https://forum.rasa.com/t/only-nlu-for-rasax/25385/9 "2023-01-09T14:40:51Z")

</div>

I have exactly the same problem. Have you managed to figure out how to solve it?
