Milvus Entities API

The Entities API from Milvus — 7 operation(s) for entities.

GitHub OpenAPI

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v2/vectordb/entities/insert Insert vectors into a collection · Insert entities/vectors #
Ask an LLM
“How do I add new vectors to a Milvus collection?”
“Can I insert vectors into a specific partition?”
Tell an agent
Insert these vectors into collection {collection}.
Add vectors {data} to partition {partition} of {collection}.
POST /v2/vectordb/entities/upsert Upsert vectors into a collection · Upsert entities #
Ask an LLM
“How do I insert vectors that might already exist in a collection?”
“Can upserts update existing vectors and insert new ones in one call?”
Tell an agent
Upsert vectors {data} into collection {collection}.
Insert or update vectors {data} in {collection} with upsert.
POST /v2/vectordb/entities/delete Delete vectors by filter · Delete entities #
Ask an LLM
“How do I remove vectors from a collection that match a filter?”
“Can I delete vectors by their IDs?”
Tell an agent destructive · confirm first
Delete vectors from collection {collection} matching {filter}.
Remove all vectors in {collection} where {filter} is true.
POST /v2/vectordb/entities/get Get vectors by ID · Get entities by id #
Ask an LLM
“How do I fetch a single vector by its ID?”
“Can I select specific fields when retrieving a vector?”
Tell an agent
Get vector {id} from collection {collection}.
Retrieve vector {id} in {collection} returning only {fields}.
POST /v2/vectordb/entities/query Query vectors with a scalar filter · Query entities with a scalar filter #
Ask an LLM
“How do I find vectors whose scalar fields match a condition?”
“Can I limit and offset scalar-filtered vector queries?”
Tell an agent
Query collection {collection} for vectors matching {filter}.
Find {limit} vectors in {collection} matching {filter}, skipping {offset}.
POST /v2/vectordb/entities/search Vector similarity search · Vector similarity search #
Ask an LLM
“How do I find vectors most similar to a query vector?”
“Can I filter a vector search by a scalar condition?”
Tell an agent
Search collection {collection} for vectors similar to {data}.
Find the {limit} vectors in {collection} near {data} matching {filter}.
POST /v2/vectordb/entities/hybrid_search Hybrid search over multiple vectors · Hybrid (multi-vector) search #
Ask an LLM
“How do I combine keyword and vector search over several vectors?”
“Can I rerank results from a multi-vector search?”
Tell an agent
Run a hybrid search on collection {collection} with search {search}.
Hybrid search {collection} with {search} and rerank results with {rerank}.

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/milvus:milvus-entities-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

milvus-entities-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Milvus REST Entities API
  description: 'RESTful API for the Milvus vector database (v2). Covers collections, entities,

    indexes, partitions, users, and roles. Sourced from

    https://milvus.io/api-reference/restful/v2.5.x.'
  version: 2.5.x
  contact:
    name: Milvus
    url: https://milvus.io
servers:
- url: http://localhost:19530
  description: Default local Milvus instance
security:
- BearerAuth: []
tags:
- name: Entities
paths:
  /v2/vectordb/entities/insert:
    post:
      summary: Insert entities/vectors
      operationId: insertEntities
      tags:
      - Entities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
                data:
                  type: array
                  items:
                    type: object
                partitionName:
                  type: string
      responses:
        '200':
          description: Inserted
  /v2/vectordb/entities/upsert:
    post:
      summary: Upsert entities
      operationId: upsertEntities
      tags:
      - Entities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
                data:
                  type: array
                  items:
                    type: object
      responses:
        '200':
          description: Upserted
  /v2/vectordb/entities/delete:
    post:
      summary: Delete entities
      operationId: deleteEntities
      tags:
      - Entities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
                filter:
                  type: string
      responses:
        '200':
          description: Deleted
  /v2/vectordb/entities/get:
    post:
      summary: Get entities by id
      operationId: getEntities
      tags:
      - Entities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
                id:
                  oneOf:
                  - type: integer
                  - type: string
                  - type: array
                    items:
                      type: integer
                outputFields:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: Entities
  /v2/vectordb/entities/query:
    post:
      summary: Query entities with a scalar filter
      operationId: queryEntities
      tags:
      - Entities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
                filter:
                  type: string
                outputFields:
                  type: array
                  items:
                    type: string
                limit:
                  type: integer
                offset:
                  type: integer
      responses:
        '200':
          description: Query results
  /v2/vectordb/entities/search:
    post:
      summary: Vector similarity search
      operationId: searchEntities
      tags:
      - Entities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
                data:
                  type: array
                  items:
                    type: array
                    items:
                      type: number
                annsField:
                  type: string
                limit:
                  type: integer
                filter:
                  type: string
                outputFields:
                  type: array
                  items:
                    type: string
                searchParams:
                  type: object
      responses:
        '200':
          description: Search results
  /v2/vectordb/entities/hybrid_search:
    post:
      summary: Hybrid (multi-vector) search
      operationId: hybridSearchEntities
      tags:
      - Entities
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                collectionName:
                  type: string
                search:
                  type: array
                  items:
                    type: object
                rerank:
                  type: object
                limit:
                  type: integer
      responses:
        '200':
          description: Hybrid search results
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer token of the form `username:password` (e.g. `root:milvus`) when

        authentication is enabled.

        '