• INVENTORY
  • VALIDATION
  • RECONCILIATION
  • HUMAN

How to audit document collections with your AI

Connect R2R to your AI client once. Your agent then handles the heavy lifting of scanning your data for errors or missing info.

Ask AI about this page

Short answer

How can I audit my R2R document collections using AI?

Your AI pulls lists of all collections and files to check for inconsistencies. It inspects metadata and file details to ensure your ingested data is accurate.

Audit outcomes

Where your audit findings land.

The AI organizes its findings into these specific categories.

INVENTORY

Complete data map

The AI lists every collection and document it finds. You get a clear view of your entire R2R library.

VALIDATION

Metadata accuracy

The agent checks file properties against your requirements. This highlights where tags or attributes are missing.

RECONCILIATION

Missing file alerts

By comparing lists, the AI finds documents that exist in your source but didn't make it into a collection.

HUMAN

Manual cleanup

The AI flags broken links or bad data. You handle the actual fixes in R2R based on these reports.

The workflow

What your AI does when the audit starts.

The AI moves through your R2R structure to build a complete picture of your data.

  1. Map the library

    The AI identifies every available data group in your R2R instance to establish the scope of the audit.

    list_collections
  2. Catalog files

    Once it knows which collections to check, the AI pulls a list of every document within those groups.

    list_documents
  3. Inspect content

    The agent looks deep into specific files to read their properties and verify the data is correct.

    get_document
  4. Report errors

    The AI compares what it found against your instructions and highlights any discrepancies.

    get_document

Try it

Copy these to start.

Use these prompts to begin your audit.

Starting points

These are opening lines. Swap out the collection names for your actual R2R collection names.

R2R Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_Psy9XiP4IhGY7SchHirciLtxL89aKlE6LAoJStd2/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — R2R capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "r2r-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_Psy9XiP4IhGY7SchHirciLtxL89aKlE6LAoJStd2/mcp"
    }
  }
}
Copy into chat04
  • List all my R2R collections and tell me how many documents are in each.

  • Check the 'legal_docs' collection and tell me if any files are missing metadata.

  • Find all documents in the 'user_manuals' collection that were uploaded last week.

  • Get the details for the document named 'policy_v2' and verify its tags.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect R2R once, then ask.

Link your R2R account to Vinkius. Your credentials stay encrypted, and you can immediately start auditing your data through your preferred AI client.

Connect R2R to your AI

FAQ

How the audit behaves

  • 01

    Can the AI delete documents in R2R?

    No. The AI can only list and read document data. It cannot delete or modify files in your R2R instance.

  • 02

    Can the AI fix broken metadata automatically?

    No. The AI identifies the errors, but you must perform the actual updates in R2R yourself.

  • 03

    How does the AI know which collections to look at?

    It uses the list_collections tool to see everything available, then you tell it which specific ones to focus on.

  • 04

    Can I audit files that aren't in a collection?

    No. The AI can only inspect files it can find through the list_documents tool within existing collections.

  • 05

    Does the AI see the full content of my documents?

    Yes, if you ask it to inspect a specific file, it uses the get_document tool to read that file's data.

  • More questions about R2R? See everything the R2R Connector can do

Connect R2R to Claude, Cursor, ChatGPT & more