NLP Queries (JSON)
POST
/api/collections/data/fetch/natural-queryLast modified:Â 5 months ago
Request
Body Params application/json
collection
stringÂ
required
query
stringÂ
required
The natural language query that will fetch the data from the DB
format
stringÂ
required
The output format. It can be a JSON
, file
and stream
.
Example
{
"collection": "datalogs",
"query": "get me all the data where it has talen over 100 ms to process",
"format": "JSON"
}
Request samples
Responses
Success(200)
Bad Request(400)
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
data
array [object {8}]Â
required
data1
stringÂ
required
data2
numberÂ
required
data3
integerÂ
required
data4
stringÂ
required
data5
stringÂ
required
data6
stringÂ
required
data7
stringÂ
required
data8
stringÂ
required
collection
stringÂ
required
processingTime
numberÂ
required
processingId
stringÂ
required
Example
{
"data": [
{
"data1": "Ut exercitation id esse",
"data2": 38373557.87788534,
"data3": -92389327,
"data4": "mollit est",
"data5": "aliquip",
"data6": "mollit",
"data7": "sint pariatur",
"data8": "culpa sunt labore"
},
{
"data1": "ut velit occaecat culpa nulla",
"data2": 95437062.61120066,
"data3": 18291019,
"data4": "irure commodo proident in adipisicing",
"data5": "voluptate aliquip nostrud ut eu",
"data6": "qui ad culpa",
"data7": "sunt et",
"data8": "aute nisi reprehenderit"
},
{
"data1": "occaecat",
"data2": -67534125.58723557,
"data3": -1037990,
"data4": "esse",
"data5": "deserunt",
"data6": "adipisicing ipsum cillum",
"data7": "sed esse et sunt",
"data8": "ea"
}
],
"collection": "Collection Name",
"processingTime": 128.30865762,
"processingId": "12331419-7034-41c0-b473-ba61989ee7a2"
}
Last modified: 5 months ago