• GROUNDED
  • CONTEXTUAL
  • VERIFIED
  • CLEAN

How to run RAG queries with your AI client

Connect R2R to your AI client to turn your documents into a searchable knowledge base. Your agent uses this data to answer questions with real context.

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 can I run RAG queries with my AI?

You use the rag_query tool to pull relevant text from your R2R data directly into your chat. Your agent then uses those snippets to answer your questions. You'll see how the retrieval works below.

The outcomes

What you get from RAG

RAG changes how your agent interacts with your data.

GROUNDED

Fact-based answers

Your agent pulls specific text from your files. This keeps the response tied to your actual data.

CONTEXTUAL

Deep data awareness

Your agent understands the specifics of your documents. It treats your files as the primary source of truth.

VERIFIED

Human oversight

You can see the snippets your agent found. You decide if the answer is right based on the source text.

CLEAN

Focused context

Your agent only grabs what it needs. This prevents the context window from getting cluttered with useless info.

The workflow

What your agent does when a query arrives.

Your agent handles the search and synthesis steps automatically.

  1. Search data

    Your agent looks through your R2R index to find information that matches your question.

    rag_query
  2. Retrieve context

    The tool pulls the most relevant text chunks from your uploaded documents.

    rag_query
  3. Synthesize answer

    Your AI client combines the retrieved text with your prompt to build a response.

    rag_query
  4. Deliver response

    Your agent provides the final answer in your chat interface using the retrieved context.

    rag_query

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 test the connection immediately.

Starting points

These are opening lines. Swap the bracketed text for your specific document names or topics.

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

    Using the R2R data, what does the [Project X] roadmap say about the Q3 release?

  • 02

    Summarize the main findings from the [User Feedback] documents.

  • 03

    Based on the [Technical Specs] in my files, how do I configure the API?

  • 04

    Find any mentions of [Budget Constraints] in the [Finance] folder.

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

Start here

Connect R2R once, then ask.

One link connects your data. Your login stays encrypted on our side, and you can start querying in any MCP-compatible client.

Connect R2R to your agent

FAQ

How RAG queries behave

  • 01

    Can your agent edit my files?

    No. The rag_query tool is for reading data only. It cannot change or delete your documents.

  • 02

    Does your agent read each file I have?

    No. It only retrieves the specific snippets needed to answer your current question.

  • 03

    Can I use this with Cursor or VS Code?

    Yes. Any MCP-compatible client works once you connect the R2R MCP through Vinkius.

  • 04

    What if the answer isn't in my data?

    Your agent should tell you it can't find the info. It relies on the retrieved context to answer.

  • 05

    Can your agent delete my R2R index?

    No. This MCP does not have tools to delete or modify your data index.

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