Skip to main content
View plugin source · Plugin ID · Plugin API The archive plugin extracts files from archives so Quivr can read and index them.
The archive plugin brings individual files from bucket archives into Quivr to be read and indexed.The archive plugin brings individual files from bucket archives into Quivr to be read and indexed.

What it does

Import files from ZIP or tar.gz archives in an S3-compatible bucket. Quivr collects the files inside each archive so they can be processed individually.

Before you start

  • Put finished archives under one bucket prefix (the start of an object key, such as inbox/). The plugin imports in lexicographic order by object key. Pad numbers with leading zeros, such as archive-0002.zip and archive-0010.zip, so numerical order matches key order.
  • Have credentials with permission to list the prefix and read the objects. Supply access_key_id and secret_access_key as instance credentials, plus session_token for temporary credentials. The plugin does not read ambient AWS credentials.
  • Choose a collection (a Corpus in the API) and make sure Quivr can read the files inside the archives. Use an API key with connectors:read, connectors:write, content:read and search:query for the collection.
  • Set credential_key in your Quivr deployment so it can store the storage credential.

Enable it

1

Find the archive source

Look for object_storage_archive in GET /v0/connector-kinds. If it is missing, pin the plugin.
2

Create an instance

Follow Import an archive. Set the bucket, prefix, region and media type of the files inside the archive. Include the storage credential in credential.secret in the same request.

Use it

Import only the files you need

For ZIP archives containing XML files, set archive_patterns to ["**/*.zip"], member_pattern to "**/*.xml" and media_type to "application/xml". The first pattern matches bucket keys. The second matches paths inside each archive. Set a media type supported by the plugin that will read your files. If the same document appears in more than one archive, follow Choose the member identity to give its revisions the same record key and the right order. Check import progress before looking for the files in your collection.

Settings

What it produces

For each matching file, the plugin submits the original bytes. Quivr uses the configured media type to decide how to read the file.

Limits and troubleshooting

Use a separate instance to import a replacement archive or an earlier range. Choose a prefix or pattern that selects only those archives.