feat(Milvus Vector Store Node): Add support for the Milvus vector db (#14404)

This commit is contained in:
Yiorgis Gozadinos
2025-04-08 14:34:40 +02:00
committed by GitHub
parent ad6c83afd4
commit 048b9d7589
8 changed files with 244 additions and 10 deletions

View File

@@ -0,0 +1,54 @@
import type {
ICredentialTestRequest,
ICredentialType,
INodeProperties,
IAuthenticateGeneric,
} from 'n8n-workflow';
export class MilvusApi implements ICredentialType {
name = 'milvusApi';
displayName = 'Milvus';
documentationUrl = 'milvus';
properties: INodeProperties[] = [
{
displayName: 'Base URL',
name: 'baseUrl',
required: true,
type: 'string',
default: 'http://localhost:19530',
},
{
displayName: 'Username',
name: 'username',
type: 'string',
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: { password: true },
default: '',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials.username}}:{{$credentials.password}}',
},
},
};
test: ICredentialTestRequest = {
request: {
baseURL: '={{ $credentials.baseUrl }}',
url: '/v1/vector/collections',
method: 'GET',
},
};
}