ablative docs
↑↓ move↵ openesc close
Stack Notebook ablative.com.au

Query language

Short pipelines in jq's shape, checked before they run.

Open .md

Six queries

patients(ward: "4B")
collection("patients") | sort(.admitted; desc) | limit(2)
match (c:patients)-[:admitted_to]->(w:wards)<-[:staffed_by]-(n:nurses)
patients | rg(.ward; "4b"; "-i -F")
{ patients(ward: "3A") { name } wards { code } }
collection("patients") | similar(.embedding; record("p0"); dot) | limit(20) | rerank(.embedding; record("p0"); dot) | limit(2)

When a query is wrong

The service answers with a code, a sentence and the span of text that caused it. A sort after the quoted jq stage, a count followed by anything, a limit of zero, a percentile of 101: each is refused by name.