UNPKG

simple-milvus-mcp

Version:

MCP server for Milvus vector database with semantic and full-text search capabilities

950 lines (949 loc) 108 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { "nested": { "milvus": { "nested": { "proto": { "nested": { "schema": { "options": { "go_package": "github.com/milvus-io/milvus-proto/go-api/v2/schemapb", "java_multiple_files": true, "java_package": "io.milvus.grpc", "java_outer_classname": "SchemaProto", "java_generate_equals_and_hash": true, "csharp_namespace": "Milvus.Client.Grpc" }, "nested": { "DataType": { "values": { "None": 0, "Bool": 1, "Int8": 2, "Int16": 3, "Int32": 4, "Int64": 5, "Float": 10, "Double": 11, "String": 20, "VarChar": 21, "Array": 22, "JSON": 23, "Geometry": 24, "BinaryVector": 100, "FloatVector": 101, "Float16Vector": 102, "BFloat16Vector": 103, "SparseFloatVector": 104 } }, "FunctionType": { "values": { "Unknown": 0, "BM25": 1, "TextEmbedding": 2 } }, "FieldState": { "values": { "FieldCreated": 0, "FieldCreating": 1, "FieldDropping": 2, "FieldDropped": 3 } }, "FieldSchema": { "fields": { "fieldID": { "type": "int64", "id": 1 }, "name": { "type": "string", "id": 2 }, "isPrimaryKey": { "type": "bool", "id": 3 }, "description": { "type": "string", "id": 4 }, "dataType": { "type": "DataType", "id": 5 }, "typeParams": { "rule": "repeated", "type": "common.KeyValuePair", "id": 6 }, "indexParams": { "rule": "repeated", "type": "common.KeyValuePair", "id": 7 }, "autoID": { "type": "bool", "id": 8 }, "state": { "type": "FieldState", "id": 9 }, "elementType": { "type": "DataType", "id": 10 }, "defaultValue": { "type": "ValueField", "id": 11 }, "isDynamic": { "type": "bool", "id": 12 }, "isPartitionKey": { "type": "bool", "id": 13 }, "isClusteringKey": { "type": "bool", "id": 14 }, "nullable": { "type": "bool", "id": 15 }, "isFunctionOutput": { "type": "bool", "id": 16 } } }, "FunctionSchema": { "fields": { "name": { "type": "string", "id": 1 }, "id": { "type": "int64", "id": 2 }, "description": { "type": "string", "id": 3 }, "type": { "type": "FunctionType", "id": 4 }, "inputFieldNames": { "rule": "repeated", "type": "string", "id": 5 }, "inputFieldIds": { "rule": "repeated", "type": "int64", "id": 6 }, "outputFieldNames": { "rule": "repeated", "type": "string", "id": 7 }, "outputFieldIds": { "rule": "repeated", "type": "int64", "id": 8 }, "params": { "rule": "repeated", "type": "common.KeyValuePair", "id": 9 } } }, "CollectionSchema": { "fields": { "name": { "type": "string", "id": 1 }, "description": { "type": "string", "id": 2 }, "autoID": { "type": "bool", "id": 3, "options": { "deprecated": true } }, "fields": { "rule": "repeated", "type": "FieldSchema", "id": 4 }, "enableDynamicField": { "type": "bool", "id": 5 }, "properties": { "rule": "repeated", "type": "common.KeyValuePair", "id": 6 }, "functions": { "rule": "repeated", "type": "FunctionSchema", "id": 7 }, "dbName": { "type": "string", "id": 8 } } }, "BoolArray": { "fields": { "data": { "rule": "repeated", "type": "bool", "id": 1 } } }, "IntArray": { "fields": { "data": { "rule": "repeated", "type": "int32", "id": 1 } } }, "LongArray": { "fields": { "data": { "rule": "repeated", "type": "int64", "id": 1 } } }, "FloatArray": { "fields": { "data": { "rule": "repeated", "type": "float", "id": 1 } } }, "DoubleArray": { "fields": { "data": { "rule": "repeated", "type": "double", "id": 1 } } }, "BytesArray": { "fields": { "data": { "rule": "repeated", "type": "bytes", "id": 1 } } }, "StringArray": { "fields": { "data": { "rule": "repeated", "type": "string", "id": 1 } } }, "ArrayArray": { "fields": { "data": { "rule": "repeated", "type": "ScalarField", "id": 1 }, "elementType": { "type": "DataType", "id": 2 } } }, "JSONArray": { "fields": { "data": { "rule": "repeated", "type": "bytes", "id": 1 } } }, "GeometryArray": { "fields": { "data": { "rule": "repeated", "type": "bytes", "id": 1 } } }, "ValueField": { "oneofs": { "data": { "oneof": [ "boolData", "intData", "longData", "floatData", "doubleData", "stringData", "bytesData" ] } }, "fields": { "boolData": { "type": "bool", "id": 1 }, "intData": { "type": "int32", "id": 2 }, "longData": { "type": "int64", "id": 3 }, "floatData": { "type": "float", "id": 4 }, "doubleData": { "type": "double", "id": 5 }, "stringData": { "type": "string", "id": 6 }, "bytesData": { "type": "bytes", "id": 7 } } }, "ScalarField": { "oneofs": { "data": { "oneof": [ "boolData", "intData", "longData", "floatData", "doubleData", "stringData", "bytesData", "arrayData", "jsonData", "geometryData" ] } }, "fields": { "boolData": { "type": "BoolArray", "id": 1 }, "intData": { "type": "IntArray", "id": 2 }, "longData": { "type": "LongArray", "id": 3 }, "floatData": { "type": "FloatArray", "id": 4 }, "doubleData": { "type": "DoubleArray", "id": 5 }, "stringData": { "type": "StringArray", "id": 6 }, "bytesData": { "type": "BytesArray", "id": 7 }, "arrayData": { "type": "ArrayArray", "id": 8 }, "jsonData": { "type": "JSONArray", "id": 9 }, "geometryData": { "type": "GeometryArray", "id": 10 } } }, "SparseFloatArray": { "fields": { "contents": { "rule": "repeated", "type": "bytes", "id": 1 }, "dim": { "type": "int64", "id": 2 } } }, "VectorField": { "oneofs": { "data": { "oneof": [ "floatVector", "binaryVector", "float16Vector", "bfloat16Vector", "sparseFloatVector" ] } }, "fields": { "dim": { "type": "int64", "id": 1 }, "floatVector": { "type": "FloatArray", "id": 2 }, "binaryVector": { "type": "bytes", "id": 3 }, "float16Vector": { "type": "bytes", "id": 4 }, "bfloat16Vector": { "type": "bytes", "id": 5 }, "sparseFloatVector": { "type": "SparseFloatArray", "id": 6 } } }, "FieldData": { "oneofs": { "field": { "oneof": [ "scalars", "vectors" ] } }, "fields": { "type": { "type": "DataType", "id": 1 }, "fieldName": { "type": "string", "id": 2 }, "scalars": { "type": "ScalarField", "id": 3 }, "vectors": { "type": "VectorField", "id": 4 }, "fieldId": { "type": "int64", "id": 5 }, "isDynamic": { "type": "bool", "id": 6 }, "validData": { "rule": "repeated", "type": "bool", "id": 7 } } }, "IDs": { "oneofs": { "idField": { "oneof": [ "intId", "strId" ] } }, "fields": { "intId": { "type": "LongArray", "id": 1 }, "strId": { "type": "StringArray", "id": 2 } } }, "SearchIteratorV2Results": { "fields": { "token": { "type": "string", "id": 1 }, "lastBound": { "type": "float", "id": 2 } } }, "SearchResultData": { "oneofs": { "_searchIteratorV2Results": { "oneof": [ "searchIteratorV2Results" ] } }, "fields": { "numQueries": { "type": "int64", "id": 1 }, "topK": { "type": "int64", "id": 2 }, "fieldsData": { "rule": "repeated", "type": "FieldData", "id": 3 }, "scores": { "rule": "repeated", "type": "float", "id": 4 }, "ids": { "type": "IDs", "id": 5 }, "topks": { "rule": "repeated", "type": "int64", "id": 6 }, "outputFields": { "rule": "repeated", "type": "string", "id": 7 }, "groupByFieldValue": { "type": "FieldData", "id": 8 }, "allSearchCount": { "type": "int64", "id": 9 }, "distances": { "rule": "repeated", "type": "float", "id": 10 }, "searchIteratorV2Results": { "type": "SearchIteratorV2Results", "id": 11, "options": { "proto3_optional": true } }, "recalls": { "rule": "repeated", "type": "float", "id": 12 }, "primaryFieldName": { "type": "string", "id": 13 } } }, "VectorClusteringInfo": { "fields": { "field": { "type": "string", "id": 1 }, "centroid": { "type": "schema.VectorField", "id": 2 } } }, "ScalarClusteringInfo": { "fields": { "field": { "type": "string", "id": 1 } } }, "ClusteringInfo": { "fields": { "vectorClusteringInfos": { "rule": "repeated", "type": "VectorClusteringInfo", "id": 1 }, "scalarClusteringInfos": { "rule": "repeated", "type": "ScalarClusteringInfo", "id": 2 } } }, "TemplateValue": { "oneofs": { "val": { "oneof": [ "boolVal", "int64Val", "floatVal", "stringVal", "arrayVal" ] } }, "fields": { "boolVal": { "type": "bool", "id": 1 }, "int64Val": { "type": "int64", "id": 2 }, "floatVal": { "type": "double", "id": 3 }, "stringVal": { "type": "string", "id": 4 }, "arrayVal": { "type": "TemplateArrayValue", "id": 5 } } }, "TemplateArrayValue": { "oneofs": { "data": { "oneof": [ "boolData", "longData", "doubleData", "stringData", "arrayData", "jsonData" ] } }, "fields": { "boolData": { "type": "BoolArray", "id": 1 }, "longData": { "type": "LongArray", "id": 2 }, "doubleData": { "type": "DoubleArray", "id": 3 }, "stringData": { "type": "StringArray", "id": 4 }, "arrayData": { "type": "TemplateArrayValueArray", "id": 5 }, "jsonData": { "type": "JSONArray", "id": 6 } } }, "TemplateArrayValueArray": { "fields": { "data": { "rule": "repeated", "type": "TemplateArrayValue", "id": 1 } } } } }, "common": { "options": { "go_package": "github.com/milvus-io/milvus-proto/go-api/v2/commonpb", "java_multiple_files": true, "java_package": "io.milvus.grpc", "java_outer_classname": "CommonProto", "java_generate_equals_and_hash": true, "csharp_namespace": "Milvus.Client.Grpc" }, "nested": { "ErrorCode": { "options": { "deprecated": true }, "values": { "Success": 0, "UnexpectedError": 1, "ConnectFailed": 2, "PermissionDenied": 3, "CollectionNotExists": 4, "IllegalArgument": 5, "IllegalDimension": 7, "IllegalIndexType": 8, "IllegalCollectionName": 9, "IllegalTOPK": 10, "IllegalRowRecord": 11, "IllegalVectorID": 12, "IllegalSearchResult": 13, "FileNotFound": 14, "MetaFailed": 15, "CacheFailed": 16, "CannotCreateFolder": 17, "CannotCreateFile": 18, "CannotDeleteFolder": 19, "CannotDeleteFile": 20, "BuildIndexError": 21, "IllegalNLIST": 22, "IllegalMetricType": 23, "OutOfMemory": 24, "IndexNotExist": 25, "EmptyCollection": 26, "UpdateImportTaskFailure": 27, "CollectionNameNotFound": 28, "CreateCredentialFailure": 29, "UpdateCredentialFailure": 30, "DeleteCredentialFailure": 31, "GetCredentialFailure": 32, "ListCredUsersFailure": 33, "GetUserFailure": 34, "CreateRoleFailure": 35, "DropRoleFailure": 36, "OperateUserRoleFailure": 37, "SelectRoleFailure": 38, "SelectUserFailure": 39, "SelectResourceFailure": 40, "OperatePrivilegeFailure": 41, "SelectGrantFailure": 42, "RefreshPolicyInfoCacheFailure": 43, "ListPolicyFailure": 44, "NotShardLeader": 45, "NoReplicaAvailable": 46, "SegmentNotFound": 47, "ForceDeny": 48, "RateLimit": 49, "NodeIDNotMatch": 50, "UpsertAutoIDTrue": 51, "InsufficientMemoryToLoad": 52, "MemoryQuotaExhausted": 53, "DiskQuotaExhausted": 54, "TimeTickLongDelay": 55, "NotReadyServe": 56, "NotReadyCoordActivating": 57, "CreatePrivilegeGroupFailure": 58, "DropPrivilegeGroupFailure": 59, "ListPrivilegeGroupsFailure": 60, "OperatePrivilegeGroupFailure": 61, "SchemaMismatch": 62, "DataCoordNA": 100, "DDRequestRace": 1000 } }, "IndexState": { "values": { "IndexStateNone": 0, "Unissued": 1, "InProgress": 2, "Finished": 3, "Failed": 4, "Retry": 5 } }, "SegmentState": { "values": { "SegmentStateNone": 0, "NotExist": 1, "Growing": 2, "Sealed": 3, "Flushed": 4, "Flushing": 5, "Dropped": 6, "Importing": 7 } }, "SegmentLevel": { "values": { "Legacy": 0, "L0": 1, "L1": 2, "L2": 3 } }, "Status": { "fields": { "errorCode": { "type": "ErrorCode", "id": 1, "options": { "deprecated": true } }, "reason": { "type": "string", "id": 2 }, "code": { "type": "int32", "id": 3 }, "retriable": { "type": "bool", "id": 4 }, "detail": { "type": "string", "id": 5 }, "extraInfo": { "keyType": "string", "type": "string", "id": 6 } } }, "KeyValuePair": { "fields": { "key": { "type": "string", "id": 1 }, "value": { "type": "string", "id": 2 } } }, "KeyDataPair": { "fields": { "key": { "type": "string", "id": 1 }, "data": { "type": "bytes", "id": 2 } } }, "Blob": { "fields": { "value": { "type": "bytes", "id": 1 } } }, "PlaceholderType": { "values": { "None": 0, "BinaryVector": 100, "FloatVector": 101, "Float16Vector": 102, "BFloat16Vector": 103, "SparseFloatVector": 104, "Int64": 5, "VarChar": 21 } }, "PlaceholderValue": { "fields": { "tag": { "type": "string", "id": 1 }, "type": { "type": "PlaceholderType", "id": 2 }, "values": { "rule": "repeated", "type": "bytes", "id": 3 } } }, "PlaceholderGroup": { "fields": { "placeholders": { "rule": "repeated", "type": "PlaceholderValue", "id": 1 } } }, "Address": { "fields": { "ip": { "type": "string", "id": 1 }, "port": { "type": "int64",