arugyani / shopIQ

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

backend: handle "other" filter responses #48

Open divyamk opened 3 months ago

divyamk commented 3 months ago

Helper function (service) that takes in, question for user, and user response for "other" field and checks if it is relevant. Feeds that question and response through Gemini then responds with a boolean determining the relevancy of the response.

The following is how to use the gemini api

const searchService = require("./src/services/searchService");

(async () => {
  console.log(await searchService.getLLMResponse("Which computer should I buy?"));
})();

Need to include .env file into backend folder to use gemini api