Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 5 Nov 2026. What's built · Install 0.3.0
jadpo
ReferenceErrors

ErrorsAI · rule

query.nearest_page

Nearest-neighbour query returns a page.

Area 21, AI; not declinable; the next step is usually the agent's.

A query ordered by nearest returning Page<T>. A page continues after a cursor, and a cursor over distances isn't stable as records are added and change.

example
/// A help article's meaning, as the configured embedding model makes it.type ArticleMeaning = Vector {    dimensions: 1536}/// An article on the help site, with its meaning once it is embedded.entity HelpArticle {    id: Uuid    body_meaning: ArticleMeaning?}/// The articles nearest a question, twenty at a time.query closest_articles(    question_meaning: ArticleMeaning,    after: PageCursor?) -> Page<Nearest<HelpArticle>> {    from: HelpArticle    order: [HelpArticle.body_meaning nearest question_meaning]    page: {        size: 20        after: after    }}
jadpo checkcheck failed: 1 error, 1 file

error closest_articles returns its nearest records a page at a time

--> main.jadpo:16:6

   |16 | ) -> Page<Nearest<HelpArticle>> {   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^ a page of nearest records
reason
A page continues after a cursor, and a cursor over distances isn't stable: as records are added and change, the next page could skip a record or show one again. A nearest-neighbour query returns one list, of at most 100.
next
Return List<Nearest<HelpArticle>> with limit: in place of page: (agent)
rule
query.nearest_page
help
https://jadpo.dev/docs/errors/query.nearest_page

Markdown for agents: /docs/errors/query.nearest_page.md.Built from Jadpo main at aee2e8f.