

What it does
Collect individual files under a prefix in an S3-compatible bucket. The plugin can also join a photo with a separate metadata document that describes it.Before you start
- Have a bucket, its signing region and a prefix (the start of an object key, such as
feed/). - Deposit an instance credential with
access_key_idandsecret_access_key. Includesession_tokenfor temporary credentials. Give it permission to list the prefix and read its objects. The plugin does not read ambient AWS credentials. - Choose a collection (a Corpus in the API) and make sure Quivr can read the file formats you want to collect. Use an API key with
connectors:read,connectors:write,content:readandsearch:queryfor the collection. - Set
credential_keyin your Quivr deployment so it can store the storage credential.
Enable it
1
Find the prefix source
Look for
object_storage_prefix in GET /v0/connector-kinds. If it is missing, pin the plugin.2
Create an instance
Follow Collect from a source with kind
object_storage_prefix. Set bucket, prefix and region in config. For an S3-compatible provider, set endpoint to its storage origin. Include the storage credential in credential.secret in the same request.Use it
Collect files as they arrive
Setobject_patterns to match the keys you want, such as ["feed/**/*.jpg", "feed/**/*.xml"] for photos and XML. Keep the default key checkpoint mode for large imports or when new keys always sort after old keys. Use timestamp to pick up overwrites and new files that sort earlier. It scans the prefix to order objects by modification time.
Pair a photo with its caption
A sidecar pair joins a media file with a separate document that describes it. For example, a NewsML-G2 XML document can supply a caption and name its JPEG under the same bucket prefix in aremoteContent link.
- In
sidecars.patterns, match the XML documents. Insidecars.media_patterns, match the JPEGs they may attach. Both files must pass the source’s object filters. - Set
sidecars.reference_patternto capture the JPEG reference from the XML. Use the samerecord_key_patterncapture for both names and map.xmltoapplication/vnd.iptc.g2.newsitem+xmlinmedia_type_by_extension. - Use the working layout and configuration and enable the NewsML-G2 and image metadata plugins. If the XML can arrive first, set
sidecars.wait_secondsto cover the upload gap. For an import where every photo has a sidecar, setsidecars.ingest_lone_mediatofalse.
Settings
What it produces
Files become records. When a pair is found, the document supplies the description and the image appears on the same record. The pair uses the media file’s record key and takes precedence over a version containing only the image.Limits and troubleshooting
Related plugins
- Object storage archive for packaged files.
- NewsML-G2 for the caption and other descriptive fields.
- Image metadata for image dimensions and thumbnails.