arugyani / shopIQ

LLM powered high-consideration research tool for UTD senior project
1 stars 0 forks source link

backend: finish search API #61

Open divyamk opened 2 months ago

divyamk commented 2 months ago
jitlis commented 2 months ago

when calling pass the query as a parameter. Example url localhost:3000/search/:query

example output of the call:

 {
        "id": 0,
        "question": "Where will you be placing the TV?",
        "questionInfo": "This helps us determine the ideal screen size and type for your viewing environment.",
        "multipleAnswers": false,
        "answers": [
            {
                "text": "Living room",
                "selected": false
            },
            {
                "text": "Bedroom",
                "selected": false
            },
            {
                "text": "Kitchen",
                "selected": false
            },
            {
                "text": "Outdoor",
                "selected": false
            }
        ],
        "other": ""
    },