• ACCURACY
  • CONTENT
  • REPAIR
  • HUMAN

How to debug RAG retrieval with your AI client

Connect R2R to your AI client once. From there, you can audit your retrieval logic and inspect the exact data feeding your context window.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How do I debug RAG retrieval with my AI?

Your agent uses R2R tools to search your index and pull specific document chunks. This lets you see exactly what the retriever found and why it chose those pieces of data. You'll see the specific outcomes of these checks below.

Debugging outcomes.

Where your findings land.

What you get after running these checks.

ACCURACY

Verify search relevance

Your agent runs searches against your R2R index. You'll see if the semantic results actually match your intent.

CONTENT

Inspect raw chunks

Your agent pulls the specific text segments used in context. You can check if the chunking strategy is working.

REPAIR

Identify retrieval gaps

Spot where the retriever fails to find relevant data. This helps you decide if you need better embeddings or better chunking.

HUMAN

Manual index tuning

Your agent cannot rewrite your R2R index or change your embedding model. You'll need to handle those changes yourself.

The workflow

What your agent does when the request arrives.

Your agent acts as an auditor for your R2R instance.

  1. Query the index

    Your agent sends a query to R2R to see what the semantic engine returns.

    search
  2. Fetch specific segments

    Once a relevant chunk is identified, your agent pulls the full content of that specific piece.

    get_document
  3. Compare results

    Your agent uses the retrieved text to evaluate if the search was actually successful.

    searchget_document
  4. Report findings

    Your agent presents the retrieved text and its assessment of the retrieval quality.

    get_document

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute R2R tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to begin your debugging session.

Starting points

Swap out the bracketed text with your specific search terms or document IDs.

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
  • 01

    Search the R2R index for 'quarterly revenue report 2023' and tell me if the results are relevant.

  • 02

    Find the document with ID 'doc_992' and show me the text in the first chunk.

  • 03

    Run a search for 'employee benefits policy' and check if the retrieved chunks contain the section on dental insurance.

  • 04

    Search for 'project phoenix timeline' and tell me if any of the retrieved documents are outdated.

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

Start here

Connect R2R once, then ask.

Link your R2R instance to Vinkius. Your credentials stay encrypted and you can immediately start debugging with any MCP-compatible client.

Connect R2R to your agent

FAQ

How this task behaves.

  • 01

    Can your agent change my R2R embedding model?

    No. Your agent can only read from the index using the existing tools.

  • 02

    Can your agent delete documents from my R2R instance?

    No. This MCP only provides tools to search and get document content.

  • 03

    How does your agent know if a search result is good?

    Your agent compares your original question against the text it pulls via the search and get_document tools.

  • 04

    Can I use this with Cursor?

    Yes, any MCP-compatible client like Cursor, Claude, or Windsurf works.

  • 05

    Does your agent see my whole database at once?

    No. Your agent only sees the specific chunks it retrieves through the search tool.

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

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from R2R to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    R2R plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect R2R to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.