> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quivr.thevibecompany.co/llms.txt
> Use this file to discover all available pages before exploring further.

# How Quivr works

> Follow a document from arrival to keyword search, meaning search, and alerts.

Quivr keeps each version of a document and prepares it for search and alerts. Follow a ferry notice from the moment your app sends it to the moment someone finds it.

## 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.

![A ferry notice goes from submission and receipt to a version with parts, then to searchable passages.](https://mintcdn.com/thevibecompany/sga_mjiEWrGaoHFw/images/diagrams/overview-document-path.png?fit=max\&auto=format\&n=sga_mjiEWrGaoHFw\&q=85\&s=b6e28232987a209655a4e95c12d0e683)

## 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.

![Text becomes searchable by keyword first, then by meaning once its vectors are indexed.](https://mintcdn.com/thevibecompany/sga_mjiEWrGaoHFw/images/diagrams/overview-search-readiness.png?fit=max\&auto=format\&n=sga_mjiEWrGaoHFw\&q=85\&s=d36c7340381e8872d412cda66d77456f)

## 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](https://docs.quivr.thevibecompany.co/guides/alerts.md) shows the webhook body.

An alert rule configured to call an outside service may send document text there. See [where plugins send content](https://docs.quivr.thevibecompany.co/plugins/overview.md#who-runs-what).

## 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.

![The original and correction share one document. Search moves to the ready correction and drops a withdrawn document.](https://mintcdn.com/thevibecompany/sga_mjiEWrGaoHFw/images/diagrams/overview-version-history.png?fit=max\&auto=format\&n=sga_mjiEWrGaoHFw\&q=85\&s=1e557de0f16fcd8b410322c5a0d709b6)

## Next

* [Plugin system](https://docs.quivr.thevibecompany.co/overview/plugin-system.md) shows which services Quivr calls along the way.
* [Add content](https://docs.quivr.thevibecompany.co/guides/add-content.md) walks through submitting and tracking your own document.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.