acikyazilimagi / deprem-yardim-backend-go

Apache License 2.0
288 stars 56 forks source link

Store and serve extracted "needs" from message content #128

Closed bugthesystem closed 1 year ago

bugthesystem commented 1 year ago

Implement a flow that sends message content to Intent Extractor API to get detailed intent tags (needs) and serve from the backend API

Request

"inputs": [
    "İskenderun Hatay Mustafa Kemal mahallesinde acil cadir, ilac ve mama ihtiyaci var."
  ]

Response

{
  "response": [
    {
      "string": [
        "People need [çadır, ilaç, mama], tags are [SHELTER, HEALTH, FOOD]"
      ],
      "processed": {
        "intent": [
          "Barinma",
          "Saglik",
          "Yemek"
        ],
        "detailed_intent_tags": [
          "çadır",
          "ilaç",
          "mama"
        ]
      }
    }
  ]
}
mstrYoda commented 1 year ago

resolved: https://github.com/acikkaynak/deprem-yardim-backend-go/pull/132