/IntentionValidateDjangoApp

A Django App with 2 POST APIs

Primary LanguagePython

Table of Contents

Problem Context

Every statement user speaks or dialects could be considered as an utterance . Inside each utterance, a user can have an intent behind it. Each of these intentions is modifiable via entity . E.g-
"show me yesterday’s financial news" --> utterance
"show me" --> Intent : of somthing to be shown
"financial" --> Entity that modifies the Intent
Ref: ChatbotMagzine

Problem Statement

Not every entity servers to identify an intent and an ability to discriminate between valid one and invalid one becomes an important tasks for Chatbots to resolve. Hence the task was to create the apis which a Chatbot could easily refer to while validating entities: We can assume that the validation criteria to be already provided some other service. Our task is to validate the entities based on this criteria

Intention validator

Build Status

This project intendes to validates intention composed of entities behind the utterance. It's a basic Django app which has three POST Apis

Futher information can be found in problem statetment.txt

Assumptions

  • If pick_first is present, it will simply overide the behaviour of support_multiple key and first value will be picked regardless the entity value is valid or not
  • Constraint is considered to be boolean or bad request response is thrown

Instructions

  • Inside the project directory run
docker-compose up

Run Automated Tests

You can run the already pre-built tests for the apis to test sanity functions as follows

./manage.py test

Or

python3 manage.py test