Search V3 is a Meaning and Context Based Search experience powered by AI. It is suitable for use cases where you want to return the most relevant results. For more details, please visit Search V3 Documentation

Parameters

ParameterTypeDescriptionDefault
questionstringThe search query string.undefined
training_datastringContains the Referenced Dataset Id for the pre-trained dataset.undefined
search_countnumberReturns the number of parameters we want to return. Default is 3. You can return as many as you want, but the more you return, the longer it will take.3

Initialize AI Modules

const worqhat = require('worqhat');

var config = new worqhat.Configuration({
    apiKey: "your-api-key",
    debug: true,
    max_retries: 3,
});

worqhat.initializeApp(config);

let ai = worqhat.ai();

Implementation

ai.search.v3({
    question: "What is Shreya's Id?",
    training_data: "f8180381-f2a7-4464-a0a1-b601d56919a1",
    search_count: 5,
}).then(function(response) {
    console.log(response);
}).catch(function(error) {
    console.log(error);
});

This model does not generate content on its own, but it is capable of understanding the meaning of the content provided by the user. It also understands and provides priority scoring to data that you have uploaded previously to the API. This means that if you have uploaded data to the API, and you search for a query that is similar to the data you have uploaded previously, the API will return the data that you have uploaded previously as the top result. It will also return other relevant results that are similar to the question you have asked.

PLEASE PROVIDE ACCURATE AND RELEVANT TRAINING DATA TO GET THE BEST RESULTS AS IT IS NOT A GENERATIVE MODEL.