Milvus is an open-source vector database built for scalable similarity search. Gateco connects to Milvus as a Tier 2 connector, adding identity-aware retrieval and RAG access control to your Milvus collections without modifying your existing schema.
Milvus keyword search is filter-only (no BM25 ranking). Matches return uniform score=1.0. For ranked text search, use a Postgres-based connector (Neon, Supabase, pgvector).
Step 1 — Get your endpoint and credentials
For Zilliz Cloud:
- Log in to cloud.zilliz.com and open your cluster.
- Copy the Public Endpoint URL (e.g. https://in01-abc123.serverless.gcp-us-west1.cloud.zilliz.com).
- Navigate to API Keys → Create API key. Copy the key — it is shown only once.
For self-hosted Milvus, your endpoint is typically http://your-host:19530. If RBAC is disabled (default on fresh installs), username and password are not required.
Step 2 — Create a collection
If you already have a collection, skip this step.
from pymilvus import MilvusClient, DataType
client = MilvusClient(uri="http://localhost:19530")
schema = MilvusClient.create_schema(auto_id=False, enable_dynamic_field=True)
schema.add_field("id", DataType.VARCHAR, max_length=256, is_primary=True)
schema.add_field("embedding", DataType.FLOAT_VECTOR, dim=1536)
schema.add_field("content", DataType.VARCHAR, max_length=65535)
client.create_collection("my_docs", schema=schema)Step 3 — Add the connector in Gateco
- Navigate to Connectors → Add connector → Milvus.
- Enter your endpoint URL, collection name, and credentials.
- Click Test connection.
- Click Save.
| Field | Example | Description |
|---|---|---|
host | in01-abc123.serverless.gcp-us-west1.cloud.zilliz.com | Milvus/Zilliz endpoint hostname (no https://) |
port | 19530 | Default Milvus port (Zilliz Cloud uses 443) |
collection_name | my_docs | Name of your Milvus collection |
api_key | your-zilliz-api-token | Zilliz Cloud API token (leave blank for unauthenticated self-hosted) |
username | root | Milvus RBAC username (self-hosted only, leave blank if RBAC disabled) |
password | your-password | Milvus RBAC password (self-hosted only) |
Step 4 — Configure search settings
- Click your Milvus connector → Search config.
- Set the Vector field (e.g. embedding).
- Set the Content field for the document text (e.g. content).
- Save.
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
connection refused | Wrong port or firewall | Verify port 19530 (self-hosted) or 443 (Zilliz Cloud) is accessible from Gateco |
collection not found | Wrong collection name (case-sensitive) | Check exact collection name in your Milvus client or console |
unauthenticated | RBAC enabled but credentials missing | Add username and password for self-hosted RBAC, or API key for Zilliz Cloud |