by zeroz-lab · v0.1.4
Complete Milvus vector database integration for Dify applications with collection management, vector search, data operations, and more
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
A plugin that integrates Milvus vector database with the Dify platform, providing vector operations for collection management, data insertion, search, and querying.
When inserting, provide vectors directly in each entity, for example:
[
{"id": 1, "vector": [0.1, 0.2, 0.3], "metadata": "doc-1"},
{"id": 2, "vector": [0.4, 0.5, 0.6], "metadata": "doc-2"}
]
/v2/vectordb/entities/hybrid_search (the plugin auto-injects dbName).Parameters (Dify tool form)
collection_name (string, required)searches_json (string, required): JSON array of search objects with precomputed vectors. Each object should include at least:
data: list of embeddings (precomputed), e.g. [[0.1, 0.2, ...]]annsField: target vector field namelimit: per-route top-KoutputFields, metricType, filter, params, radius, range_filter, ignoreGrowingrerank_strategy (select): rrf or weightedrerank_params (string or JSON object): For rrf use { "k": 10 }; for weighted use { "weights": [0.6, 0.4] }limit, offset, output_fields (comma-separated string or JSON array), partition_names (comma-separated string or JSON array), consistency_level, grouping_field, group_size, strict_group_size (boolean), function_score (JSON)Built-in validation
annsField (non-empty) and limit (> 0 integer), and provide data (non-empty array) with numeric vectors.rerank_strategy = weighted, rerank_params.weights must be numeric and its length must equal the number of search routes.limit is provided, ensure limit + offset < 16384 (API limit).output_fields or partition_names are provided as strings, they are split by comma after trimming whitespace.Example
searches_json = [
{
"data": [[0.12, 0.34, 0.56]],
"annsField": "vector",
"limit": 10,
"outputFields": ["*"]
}
]
rerank_strategy = rrf
rerank_params = {"k": 10}
limit = 3
output_fields = "user_id,book_title"
If you manage tool parameters via code,
searches_jsonandoutput_fieldscan also be passed as native JSON structures (list/dict) instead of strings. The plugin will normalize both formats.
Configure your Milvus connection in the Dify platform:
http://localhost:19530)username:password)default)MIT License