• MATCHES
  • SCHEMA
  • HUMAN
  • CONTEXT

How to run vector similarity searches with your agent

Connect your agent to ClickHouse once. From then on, your agent can query high-dimensional embeddings to find the most relevant data points.

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 perform vector similarity searches using my AI?

You pass high-dimensional embeddings to ClickHouse, where the engine calculates distance metrics to find the closest matches. Your agent handles the query logic and interprets the results. You get a list of the most relevant records based on semantic similarity.

Search outcomes

Where your results land

What happens when you run a similarity query.

MATCHES

Relevant record sets

Your agent identifies the closest vectors in your ClickHouse tables. You receive the specific rows that meet your similarity threshold.

SCHEMA

Table structure insights

Your agent inspects your vector columns to understand the dimensions and types. This ensures the search parameters match your actual data.

HUMAN

Manual validation

You review the returned matches to ensure the semantic distance actually represents the relationship you're looking for.

CONTEXT

Semantic retrieval

Your agent uses the retrieved vectors to answer questions or provide context for larger tasks. This turns raw numbers into usable information.

The workflow

What your agent does when the query arrives.

Your agent acts as the bridge between your natural language intent and the mathematical operations in ClickHouse.

  1. Inspect data structure

    Your agent looks at your ClickHouse tables to find the specific columns holding your embeddings.

    describe_table
  2. Execute similarity search

    Your agent sends the embedding vector to ClickHouse to run the distance calculation against your stored data.

    vector_search
  3. Filter results

    Your agent uses the returned distance scores to narrow down the most accurate matches for your request.

    vector_search
  4. Present findings

    Your agent translates the raw database rows into a readable format that answers your specific question.

    describe_table

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 ClickHouse 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 trigger searches immediately.

Starting points

Replace the table and column names with your actual ClickHouse identifiers.

ClickHouse Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_567ij3B5hJvT6KRM8Z5LcFbGNttrwDvwD2OPp6c2/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, ClickHouse capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "clickhouse-vector-search-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_567ij3B5hJvT6KRM8Z5LcFbGNttrwDvwD2OPp6c2/mcp"
    }
  }
}
Copy into chat04
  • 01

    Find the top 5 most similar records in the 'products' table using the embedding column.

  • 02

    Describe the 'user_embeddings' table so I know which columns to use for a search.

  • 03

    Search for records in the 'documents' table that are semantically close to this vector: [0.1, 0.2, 0.3].

  • 04

    Show me the schema for the 'embeddings_store' table to prepare for a similarity query.

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

Start here

Connect ClickHouse once, then ask.

Enter your credentials once to establish the connection. Your AI client will then have direct access to your ClickHouse vector data.

Connect ClickHouse to your agent

FAQ

How this task behaves

  • 01

    Can your agent change my ClickHouse table schema?

    No. Your agent can only read the table structure to understand how to perform searches.

  • 02

    Will your agent delete any of my vector data?

    No. This MCP only provides tools for describing tables and performing searches.

  • 03

    Do I need to provide the embedding vector myself?

    Yes, for a similarity search, you must provide the vector you want to use as the query point.

  • 04

    Can your agent run standard SQL queries?

    No. Your agent is limited to the specific vector search and table description tools provided.

  • 05

    How does your agent know which table to search?

    You specify the table name in your prompt, or your agent uses the describe tool to find the right one.

  • More questions about ClickHouse? The Connector page answers them. See everything the ClickHouse 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 ClickHouse 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.

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