Skip to main content
View plugin source · Plugin ID · Plugin API Alerts check new searchable content against rules you set.
The alerts plugin checks new searchable content before Quivr stores matches and sends notices.The alerts plugin checks new searchable content before Quivr stores matches and sends notices.

What it does

A saved query describes what you want to watch and which collections to watch. A subscription switches that rule on for new documents. The alerts plugin decides whether each document fits and gives evidence for its decision.

Before you start

Use a searchable collection (Corpus). Your API key needs monitoring:write to create or preview alerts and monitoring:read to read matches and delivery history. It also needs a grant for the watched collection. A request that targets an ungranted collection can return 403 Forbidden. A vector is the stored representation Quivr uses to compare the meaning of a description and a document. Both combined kinds require match, description and meaning_check. Set meaning_check to vectors for local matching or classifier to use the configured classifier. Without an open classifier endpoint, classifier uses Jev. See Meaning and described alerts for the rule fields.

Enable it

1

Check the kinds your installation offers

Single Machine pins keyword alerts. On Railway, QUIVR_DEMO_PLUGINS=1 enables the same pin. On Railway the pin also offers described when you set TYPESAFE_API_KEY or ALERTS_CLASSIFY_URL. Regular local dev offers keyword, meaning and combined rules, and adds described with TYPESAFE_API_KEY.
2

Choose kinds for a custom installation

Run the plugin using the command in its manifest. Follow Pin a plugin with the manifest in plugins/alerts and the running plugin’s URL. Set the pin’s kinds to the checks you want to offer. For the open classifier, set ALERTS_CLASSIFY_URL in the plugin process to the full /v1/classify URL. It takes precedence over Jev and receives the article text.

Use it

Preview a rule and watch for new matches

Start with the harbour rule in Keyword alerts. Before you switch it on, send the proposed saved query as definition and the alert’s evaluator to POST /v0/subscription-previews. The preview checks recent searchable versions you can access in the watched collections. It skips withdrawn documents and versions held after a failure. Inspect matches for the documents that matched and the evidence for each. not_ready counts documents for which the rule could not decide yet. Check complete to see whether the preview ran out of time. The preview saves nothing and creates no deliveries. Then create the saved query and subscription as shown in the guide. Add a matching document after activation and list its stored match. Delete the subscription when you’re done testing.

Match the outcome you describe

For an open classifier, write the outcome in the rule, for example “A ferry route is suspended.” The built-in instruction treats the opposite outcome, such as service resuming, as a negative example. Preview both kinds of article before using the rule. Set ALERTS_CLASSIFY_ARTICLE_PROBES=true only with a rule that uses a calibrated blend of vector similarity and the classifier score. When at least one eligible rule uses that combined score, the endpoint answers two extra questions once per article about reversals or cancellations and about decreases. The rule needs a query vector, a stage1_gate_threshold and all three joint_* settings. Probe scores affect the combined decision, and a probe failure fails that evaluation. Jev uses its own scoring without these probes.

Settings

What it produces

Quivr stores a match with its reason and records a change feed event. To receive a signed webhook as well, configure a webhook destination and set destination_id on the subscription. Deduplicate retries by webhook-id. Corrections and withdrawals can send follow-up notices. Delivery explains retries and how to read the change feed.

Limits and troubleshooting

Meaning rules can wait for the document’s vectors. Local meaning scores need a threshold for the vector space or a subscription override. If a described rule is refused, check the pin’s allowed kinds. If a preview reports evaluator_unavailable, check whether the plugin and its configured classifier are reachable. RSS and Atom feeds · EmbeddingGemma 2