Closed satishAarbor closed 5 years ago
@satishAarbor We're putting a lot of work in our Native NLU, so there is no official support for other engines at the time. However, it's always possible to use other services by using our hook system.
Please have a look at the documentation , there is an example on how to disable the native NLU and send incoming queries to an external provider.
Thank you !
hey @allardy thanks for your response.
As i seen in that hook folder botpress-v11_4_2-linux-x64/data/global/hooks/before_incoming_middleware
there is no file in it. How to add rasa_nlu.json file.
@satishAarbor you can see the example here
Please make sure to the latest version 11.5 which is much more stable than 11.4.2
@EFF , Appreciate the efforts put in the native NLU. However I tried to integrate the RASA NLU with the steps as mentioned in the https://botpress.io/docs/build/nlu/#external-nlu-providers but I am facing below error:
The code for middleware is as below:
const axios = require(‘axios’)
const eventTypes = [‘text’] // Process only ‘text’ events
async function rasaExtract() { if (eventTypes.includes(event.type)) { const { data } = await axios.post( ‘http://142.93.216.68:5000/parse’, { q: event.preview } )
if (data) { /* TODO Here you will need to manipulate the format of these objects so that they use the same format as Botpress NLU / event.nlu = event.nlu || {} event.nlu.intents = data.intent_ranking event.nlu.entities = data.entities //event.nlu.language = data.results.language //event.nlu.sentiment = data.results.sentiment // Disable Native NLU event.setFlag(bp.IO.WellKnownFlags.SKIP_NATIVE_NLU, true) } } }
return rasaExtract()
Hello all, I have connected with RASA NLU successfully. But i would also require to use Q & A , my bot is not replying for general talks. Whenever i ask few predefined questions, it is calling RASA NLU instead of Q&A. How to overwrite this?
@maniskec, did you get the solution, am facing the same issue. I manged to connect with rasa_nlu but no response from chat bot.
@maniskec could you share the steps how you did that
Make sure these checkboxes are checked before raising an issue, thank you!
10.11
Please also fill in these fields:
official binary
ubuntu 18.04
Hello every one i’m new to Botpress but i had some experience in RASA i already developed one chatbot in rasa . Now i’m try to integrate that rasa nlu with latest botpress 11.4.2. As per document installed and created the rasa config.yaml file and run the command python -m rasa_nlu.server --path botpress -c config.yaml its execute fine. In other side i had edit the global/config/nlu.json as per follwing
{ "intentsDir": "./intents", "entitiesDir": "./entities", "modelsDir": "./models", "provider": "rasa", "debugModeEnabled": true, "minimumConfidence": 0.3, "maximumConfidence": 100, "rasaEndpoint": "http://localhost:5000", "rasaProject": "botpress", "confidenceTreshold": 0.7, "ducklingURL": "https://duckling.botpress.io", "ducklingEnabled": true } after i executing ‘./bp’ it didn’t sync with rasa NLU. How to connect my old rasa chatbot NLU with new botpress.
thanks in advance.