AI for Search
Search V3 (Search through Meanings and Context)
Meaning and Context Based Search experiences and Recommendations powered by AI
POST
/
api
/
ai
/
search
/
v3
Authorization
Body
curl --request POST \
--url https://api.worqhat.com/api/ai/search/v3 \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"question": "What is the capital of India?",
"search_count": 10,
"training_data": "1234567890"
}'
{
"processing_count": 4,
"processing_id": "4e553b00-1898-4337-8003-291cab2f8a2b",
"processing_time": 3323,
"result": [
{
"distance": 0.1902,
"results": {
"name": "Old Fashioned",
"ppu": "0.55",
"sId": "07743dc2-2c1f-4b15-919e-7f7aae66586c",
"type": "donut"
}
},
{
"distance": 0.2543,
"results": {
"name": "Cake",
"ppu": "0.55",
"sId": "59183537-9324-44fd-a1e9-023f6acefc52",
"type": "donut"
}
},
{
"distance": 0.268,
"results": {
"name": "Raised",
"ppu": "0.55",
"sId": "b29b523e-f5c3-4402-8080-9f3416837a00",
"type": "donut"
}
}
],
"status": "success"
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
question
string
The Search Query that you want to search for.
search_count
integer
The number of results that you want to return.
training_data
string
The ID of the Trained Dataset that you want to search in.
Response
200 - application/json
processing_count
integer
The number of times the request has been processed. This is what is considered in the Billing Process.
processing_id
string
A universally unique identifier for the request. This can be used to track the request in the logs.
processing_time
integer
The time taken to process the request, in milliseconds.
result
object[]
status
string
Status indicating the success of the request.
Was this page helpful?
curl --request POST \
--url https://api.worqhat.com/api/ai/search/v3 \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"question": "What is the capital of India?",
"search_count": 10,
"training_data": "1234567890"
}'
{
"processing_count": 4,
"processing_id": "4e553b00-1898-4337-8003-291cab2f8a2b",
"processing_time": 3323,
"result": [
{
"distance": 0.1902,
"results": {
"name": "Old Fashioned",
"ppu": "0.55",
"sId": "07743dc2-2c1f-4b15-919e-7f7aae66586c",
"type": "donut"
}
},
{
"distance": 0.2543,
"results": {
"name": "Cake",
"ppu": "0.55",
"sId": "59183537-9324-44fd-a1e9-023f6acefc52",
"type": "donut"
}
},
{
"distance": 0.268,
"results": {
"name": "Raised",
"ppu": "0.55",
"sId": "b29b523e-f5c3-4402-8080-9f3416837a00",
"type": "donut"
}
}
],
"status": "success"
}