Send blank trait value through API
Do you want to request a feature, report a bug, or ask a question about wit? I want to ask a question about posting blank trait values through the Wit API. There are some expressions we don't want our app to match and send the wrong response to the end user.
What is the current behavior? Currently the API doesn't seem to pick up an intent with a blank value. We are able to validate with no entities present on the front end, but we can't replicate this through the API.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Here's an example of what we're doing in the front end, which we'd like to also do through the API:
- Expression matches to intent
- Remove all intents and entities from Understanding
- Validate the expression with no entities present
What is the expected behavior? It would be great if we could replicate this behavior through the API if there are expressions we don't want our app to pick up on and match to an intent.
Hey @hsilvester -- great ideas for for the API!
- Expression matches to intent
- To confirm, you mean you would like to return all samples, that match a given entity, value, or something like this?
- Remove all intents and entities from Understanding
- This could be achieved by a combo of GET /entities + DELETE /entities/:id. Would something like that satisfy your usecase?
- Validate expressions with no entities present
- This is an interesting use-case, I will look more into it and get back to you on this
rf: https://github.com/wit-ai/wit/issues/950 for 1.
Update on samples with no entities
- Currently, providing these samples will not actually train the model the way you would like (it does not have any effect)
- We are working on this solution in the next version of model management
In the meantime, the best solution would to create a blacklist entity, to detect the sentences that you do not want to match
@stopachka Thank you for the additional information. I've been able to train an expression with no entities tied to it using the front end UI. When I do this, the next time I enter a similar expression, Wit does not pick up an intent at all. This is what we wanted to achieve, and it would be great if that can be done through the API as well. We don't want to delete any values from our app, just train the app to not match an intent or entity the next time a similar expression is sent.
Hi @hsilvester! Regarding training an expression with no entities through the API, we now support doing that in POST /samples. We're also working on making it easier to manage datasets, so thank you for requesting this feature! :)