Back to main page

Probability

Concept:

$p expression can be used in combination of get-operation to get most probable values. Together, they work like the match end point.

Here's an example: { "from": "messages", "where": { "prev.message" : "Can you recommend me a laptop?" }, "get" : "message", "orderBy": "$p" }

This query will find you the customer's message, that is most likely to follow the "Can you recommend me a laptop?" question.

Format:

    $p