• EXTRACTED
  • CONTEXTUAL
  • MANAGED
  • HUMAN

How to query uploaded files with your AI

Connect AI21 Labs to your AI client to turn static documents into interactive data sources. Once connected, your agent can scan your files to find specific details.

Ask AI about this page

Short answer

How do I ask my AI questions about my files?

Your AI uses contextual questioning to pull specific data points from your uploaded documents. It scans the file content to provide direct answers instead of just summarizing. You get precise information extracted from your specific files.

The results you get.

Where your data lands.

The AI processes your documents to deliver these outcomes.

EXTRACTED

Specific data points

The AI pulls exact numbers, dates, or names from your documents. You get the raw facts without digging through pages.

CONTEXTUAL

Deep reasoning

Your agent understands the relationship between different parts of a document. It answers questions that require connecting two different sections.

MANAGED

File organization

The AI keeps track of what you have uploaded. You can see what is available to query at any time.

HUMAN

Manual review

You decide which answers are correct. The AI provides the evidence, but you make the final call on the data's accuracy.

The workflow

What your AI does when the files arrive.

The AI follows a logical path to locate and interpret your data.

  1. Inventory check

    The AI looks at your current file list to see what is available for questioning.

    ai21_list_files
  2. File retrieval

    The agent pulls the specific content of a document to prepare it for analysis.

    ai21_get_file
  3. Contextual answering

    The AI processes your question against the file content to find the right answer.

    ai21_contextual_answers
  4. Refined querying

    The agent uses the file data to answer follow-up questions based on the original context.

    ai21_contextual_answers

Try it

Copy these to start.

Use these prompts to begin interacting with your documents.

Starting points

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

AI21 Labs Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_lkBbjSo069CPs20POSUQREKZMhhJh19CegbljhDV/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 Labs capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "ai21-labs-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_lkBbjSo069CPs20POSUQREKZMhhJh19CegbljhDV/mcp"
    }
  }
}
Copy into chat04
  • List all the files I have uploaded so I can see what you can read.

  • Look at the project_specs.pdf and tell me the exact deadline mentioned.

  • Based on the quarterly_report.docx, what was the total revenue for Q3?

  • Read the contract_final.pdf and summarize the termination clause.

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

Start here

Connect AI21 Labs once, then ask.

Click the link to connect your account. Your credentials stay encrypted, and you can start querying immediately in your preferred AI client.

Connect AI21 Labs to your AI

FAQ

How this task behaves.

  • 01

    Can the AI edit my uploaded files?

    No. The AI can only read and query the content of your files. It cannot change or overwrite the original documents.

  • 02

    Does the AI delete files if I ask it to?

    No. There are no tools provided to delete or remove files from your storage.

  • 03

    How does the AI find the right information?

    It uses contextual reasoning to match your question to the specific text found within your uploaded files.

  • 04

    Can I query multiple files at once?

    Yes, you can ask questions that require the AI to look across the files you have provided in your list.

  • 05

    Will the AI remember my files in a new chat?

    The AI can access any files currently in your uploaded list, regardless of the chat session, once the connection is active.

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

Connect AI21 Labs to Claude, Cursor, ChatGPT & more