{"info":{"_postman_id":"2be5077a-5241-4f41-bf44-e36e4743bbf5","name":"Intent Classification Service","description":"<html><head></head><body><p>API documentation for intent classification service.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"30635450","collectionId":"2be5077a-5241-4f41-bf44-e36e4743bbf5","publishedId":"2s9YRB4CSg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-10-21T12:06:56.000Z"},"item":[{"name":"ready","id":"a989c31f-646d-4077-8c31-2fda7f494a8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8080/ready","description":"<p>Returns HTTP status code 200 with response body <code>\"OK\"</code> when the server is running, the model has been loaded, and is ready to serve inference requests, and 423 with response body <code>\"Not ready\"</code> when the model has not been loaded.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["ready"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"ba01fcec-76cb-4eb2-a922-56e178fbffda","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8080/ready"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.10.11"},{"key":"Date","value":"Thu, 19 Oct 2023 22:26:43 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"OK"},{"id":"e6cdb567-c6f1-4d30-b661-1da7bb570ea9","name":"Not ready","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8080/ready"},"status":"LOCKED","code":423,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.10.11"},{"key":"Date","value":"Thu, 19 Oct 2023 22:27:28 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"9"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"Not ready"}],"_postman_id":"a989c31f-646d-4077-8c31-2fda7f494a8c"},{"name":"intent","id":"6401b2aa-c4d3-4881-9ba6-7182af00ef43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text\": \"मेम्फिस से टैकोमा तक उड़ान भरने वाली उड़ान की लागत क्याs a Tacoma?\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/intent","description":"<p>Responds intent classification results for the given query utterance.</p>\n<h3 id=\"request\">Request</h3>\n<p>JSON request with a MIME-Type of <code>application/json</code> and body:</p>\n<ul>\n<li><strong>text</strong> <code>string</code>: Input sentence intent classification</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>JSON response with body:</p>\n<ul>\n<li><strong>intents</strong> <code>[Prediction]</code>: An array of top 3 intent prediction results. See the <code>Prediction</code> type below.</li>\n</ul>\n<p><strong><code>Prediction</code></strong> is a JSON object with fields:</p>\n<ul>\n<li><strong>label</strong> <code>string</code>: Intent label name</li>\n<li><strong>confidence</strong> <code>float</code>: Probability for the predicted intent</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["intent"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"d648305d-bf70-45dd-9f9c-878bb4c76585","name":"200 - Hindi","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text\": \"मेम्फिस से टैकोमा तक उड़ान भरने वाली उड़ान की लागत क्याs a Tacoma?\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/intent"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.10.11"},{"key":"Date","value":"Thu, 19 Oct 2023 22:05:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"131"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"intents\": [\n        {\n            \"confidence\": 0.947,\n            \"label\": \"airfare\"\n        },\n        {\n            \"confidence\": 0.09,\n            \"label\": \"flight\"\n        },\n        {\n            \"confidence\": 0.014,\n            \"label\": \"flight_no\"\n        }\n    ]\n}"},{"id":"b7102b25-2020-46bf-92a1-e68dfe07687e","name":"BODY_MISSING","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/intent"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.10.11"},{"key":"Date","value":"Thu, 19 Oct 2023 22:15:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"66"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"label\": \"BODY_MISSING\",\n    \"message\": \"Request doesn't have a body.\"\n}"},{"id":"9f4a2f67-37a6-48f2-8535-d5d21717eb07","name":"TEXT_MISSING","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text2\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/intent"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.10.11"},{"key":"Date","value":"Thu, 19 Oct 2023 22:19:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"73"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"label\": \"TEXT_MISSING\",\n    \"message\": \"\\\"text\\\" missing from request body.\"\n}"},{"id":"233d1345-8132-4cb2-b43b-e181f724a66d","name":"INVALID_TYPE","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text\": 123\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/intent"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.10.11"},{"key":"Date","value":"Thu, 19 Oct 2023 22:22:05 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"63"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"label\": \"INVALID_TYPE\",\n    \"message\": \"\\\"text\\\" is not a string.\"\n}"},{"id":"2956c91e-cc4b-4cc2-8c21-bd116de0fe65","name":"TEXT_EMPTY","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/intent"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.10.11"},{"key":"Date","value":"Thu, 19 Oct 2023 22:23:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"54"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"label\": \"TEXT_EMPTY\",\n    \"message\": \"\\\"text\\\" is empty.\"\n}"},{"id":"db38d862-cef6-48c2-a048-cca632273eef","name":"INTERNAL_ERROR","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text\": \"मेम्फिस से टैकोमा तक उड़ान भरने वाली उड़ान की लागत क्याs a Tacoma?\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/intent"},"status":"INTERNAL SERVER ERROR","code":500,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.10.11"},{"key":"Date","value":"Thu, 19 Oct 2023 22:25:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"87"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"label\": \"INTERNAL_ERROR\",\n    \"message\": \"An error occurred while processing the request.\"\n}"},{"id":"28521c97-b320-4f42-876b-914a5a9dcf41","name":"200 - Spanish","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text\": \"¿Cuál es el costo del vuelo que vuela de Memphis a Tacoma?\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/intent"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.10.11"},{"key":"Date","value":"Thu, 19 Oct 2023 22:47:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"131"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"intents\": [\n        {\n            \"confidence\": 0.94,\n            \"label\": \"airfare\"\n        },\n        {\n            \"confidence\": 0.142,\n            \"label\": \"flight\"\n        },\n        {\n            \"confidence\": 0.016,\n            \"label\": \"flight_no\"\n        }\n    ]\n}"},{"id":"8806215e-61d3-41d1-aff3-224cb270950b","name":"200 - English","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"text\": \"what is the cost for the flight that flies from memphis to tacoma?\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/intent"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Werkzeug/3.0.0 Python/3.10.11"},{"key":"Date","value":"Thu, 19 Oct 2023 22:47:54 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"130"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"intents\": [\n        {\n            \"confidence\": 0.949,\n            \"label\": \"airfare\"\n        },\n        {\n            \"confidence\": 0.037,\n            \"label\": \"flight\"\n        },\n        {\n            \"confidence\": 0.018,\n            \"label\": \"airline\"\n        }\n    ]\n}"}],"_postman_id":"6401b2aa-c4d3-4881-9ba6-7182af00ef43"}]}