mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
feat(Milvus Vector Store Node): Add support for the Milvus vector db (#14404)
This commit is contained in:
committed by
GitHub
parent
ad6c83afd4
commit
048b9d7589
@@ -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',
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user