• VECTORIZED
  • RETRIEVED
  • HUMAN
  • READY

How to build RAG knowledge bases with your AI

Connect AI21 Studio to your AI client to turn plain text into a searchable foundation for retrieval-augmented generation.

Ask AI about this page

Short answer

How do I build a RAG knowledge base for my AI?

You use AI21 Studio to convert your text into numerical vectors. This lets your agent pull relevant information from your files to answer questions. You'll see how the data moves from raw text to a searchable index below.

The results of your connection

Where your data goes

Once you connect, your AI gains these capabilities.

VECTORIZED

Searchable text indices

The AI converts your documents into vectors. You get a mathematical representation of your text that makes retrieval possible.

RETRIEVED

Context-aware answers

Your agent pulls relevant snippets from your files. This ensures the responses stay grounded in your specific data.

HUMAN

Manual data oversight

The AI cannot decide which files to delete or modify. You retain full control over the source text and the knowledge base.

READY

Active RAG workflows

The connection is live. You can immediately start asking questions about your uploaded documents through your preferred client.

The workflow

What your AI does when the data arrives.

The AI handles the heavy lifting of turning text into math.

  1. Text ingestion

    The AI reads your raw text files and prepares them for processing.

    chat_completion
  2. Vector conversion

    The system transforms text strings into numerical vectors for similarity searches.

    chat_completion
  3. Context retrieval

    When you ask a question, the AI finds the most relevant vector matches in your knowledge base.

    chat_completion
  4. Response generation

    The agent combines the retrieved facts with your prompt to give a grounded answer.

    chat_completion

Try it

Copy these to start.

Use these prompts once you have connected AI21 Studio.

Starting points

Replace the bracketed text with your specific file names or topics.

AI21 Studio Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_WMa28JOwaFReJYak5RqbS43SLWBj7OclFDn8OYFn/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 — AI21 Studio capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "ai21-studio-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_WMa28JOwaFReJYak5RqbS43SLWBj7OclFDn8OYFn/mcp"
    }
  }
}
Copy into chat04
  • Summarize the key points from my project_notes.txt file.

  • Based on the technical_manual.pdf, how do I reset the device?

  • Search my customer_feedback.csv and tell me the top three complaints.

  • Using the meeting_transcripts folder, what were the action items from Tuesday?

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

Start here

Connect AI21 Studio once, then ask.

Follow the link to authorize the connection. Your credentials stay encrypted, and you can jump straight into your chat client.

Connect AI21 Studio to your AI

FAQ

How this task behaves

  • 01

    Can the AI edit my original text files?

    No. The AI only reads the text to create vectors; it cannot change or overwrite your source files.

  • 02

    Does the AI delete data if it finds a conflict?

    No. The AI has no capability to delete files or remove data from your knowledge base.

  • 03

    How does the AI find the right information?

    It uses vector similarity to find the text chunks that most closely match the meaning of your question.

  • 04

    Can I use this with Cursor or Claude?

    Yes, as long as your client supports the Model Context Protocol, it will work.

  • 05

    Do I need to manually create embeddings?

    No, the AI21 Studio connection handles the transformation of text into vectors automatically.

  • More questions about AI21 Studio? The Connector page answers them. See everything the AI21 Studio Connector can do

Connect AI21 Studio to Claude, Cursor, ChatGPT & more