• SEMANTIC
  • CONTEXT
  • RELEVANCE
  • HUMAN

How to run kNN similarity searches with your agent

Connect your agent to Elasticsearch to find data based on meaning rather than keywords. Once connected, your agent can query your vectors directly.

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

Your agent uses the Elasticsearch Vector connector to execute multi-dimensional vector searches against your indices. This allows your agent to pull semantic matches that keyword searches often miss. You'll see how your agent interacts with your data below.

Search outcomes

What you get from these searches

Your agent turns your natural language questions into vector queries.

SEMANTIC

Meaning-based matches

Your agent finds documents that share the same intent or concept as your query. It looks at the underlying vectors instead of matching words.

CONTEXT

Deep data retrieval

Your agent pulls relevant context from your Elasticsearch indices. This provides the necessary background for your agent to answer complex questions accurately.

RELEVANCE

High-precision results

By using kNN, your agent narrows down the most mathematically similar items. You get results that actually relate to the subject matter.

HUMAN

Manual review needed

Your agent identifies the closest matches, but you decide if the semantic relationship is actually useful for your specific task.

The workflow

What your agent does when a search arrives.

Your agent handles the heavy lifting of translating your intent into a vector query.

  1. Identify the target

    Your agent looks at your request and determines which specific index contains the vectors needed for the search.

    get_index
  2. Execute the search

    Your agent runs the similarity query against the specified index to find the nearest neighbors.

    search
  3. Process results

    Your agent takes the raw vector matches and converts them into readable information.

    search
  4. Deliver answers

    Your agent presents the most relevant findings from the Elasticsearch index in a way that answers your question.

    search

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 Elasticsearch Vector 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 your first vector searches.

Starting points

Swap out the bracketed text for your actual index names or search terms.

Elasticsearch Vector Connector

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

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

    Find documents in the 'product_docs' index that are semantically similar to 'how to reset my password'.

  • 02

    Search the 'customer_feedback' index for entries that match the sentiment of 'the user is frustrated with latency'.

  • 03

    Using the 'knowledge_base' index, find any entries related to the concept of 'asynchronous processing'.

  • 04

    Run a similarity search in 'legal_contracts' to find clauses similar to 'force majeure provisions'.

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

Start here

Connect Elasticsearch Vector once, then ask.

Link your account once. Your credentials stay encrypted, and you can immediately start querying your indices through your AI client.

Connect Elasticsearch Vector to your agent

FAQ

How this task behaves

  • 01

    Can your agent change my Elasticsearch index settings?

    No. Your agent can only read data through the provided tools; it cannot modify your indices or configurations.

  • 02

    Does your agent delete any of my vector data?

    No. This connector is read-only. It has no capability to delete or overwrite your existing data.

  • 03

    Can I search across multiple indices at once?

    Your agent can perform searches on specific indices you point it toward using the available tools.

  • 04

    Do I need to provide the vector embeddings myself?

    Your agent uses the existing vectors already stored in your Elasticsearch indices to perform the similarity math.

  • 05

    Will your agent suggest new indices to create?

    No. Your agent can only interact with indices that already exist in your Elasticsearch environment.

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

    Elasticsearch Vector 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 Elasticsearch Vector 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.