The path of a document
You send the notice to a collection, called a Corpus in the API. In that collection, a source name and a key identify the document. For a ferry notice, the key could be its URL. The API calls this document a Record. Quivr accepts the submission and gives your app a receipt to track processing. The worker reads any file through a format plugin for that file type, when needed. The resulting version contains parts, named pieces such as the title, body, or a PDF page. Quivr indexes the passages the ingestion plugin cuts from those parts.

Keyword search and meaning search
Once Quivr indexes the notice’s text passages, a keyword search for “ferry” can find it. The ingestion plugin computes vectors in a later step. These lists of numbers let Quivr compare a query and a passage by meaning. When the vectors are ready, a query like “boat service disruption” can find a notice about suspended sailings. Text can appear in keyword search while its vectors are still being prepared.

Alerts on new content
A saved query describes what to look for, such as the phrase “ferry service suspended”, and which collections to check. An alert, called a Subscription in the API, applies that query to incoming content. Once the notice becomes searchable, the alert rule plugin checks the notice against the saved query. It can report a match, no match, or that it needs to wait for vectors. When the rule finds a match, Quivr records it with a reason. A configured destination can receive a webhook, an HTTP notification that identifies the match. Your app can use the notification to fetch the match and its reason from the API. The alerts guide shows the webhook body. An alert rule configured to call an outside service may send document text there. See where plugins send content.Corrections and withdrawals
If the source updates the ferry notice, the same document can get a new version. Search uses the new version when it becomes searchable. Earlier versions remain in the document’s history. A withdrawal immediately and permanently removes the notice from search and future alert matches. Readers with access can still open its history. A correction adds a version to the same document, and a withdrawal takes the document out of search.

Next
- Plugin system shows which services Quivr calls along the way.
- Add content walks through submitting and tracking your own document.