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
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
Need to include .env file into backend folder to use gemini api