mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
refactor: Every node class should have a distinct constructor name (no-changelog) (#11403)
This commit is contained in:
parent
2e6446454d
commit
8cbe94708e
|
@ -19,7 +19,7 @@ const insertFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const VectorStoreInMemory = createVectorStoreNode({
|
export class VectorStoreInMemory extends createVectorStoreNode({
|
||||||
meta: {
|
meta: {
|
||||||
displayName: 'In-Memory Vector Store',
|
displayName: 'In-Memory Vector Store',
|
||||||
name: 'vectorStoreInMemory',
|
name: 'vectorStoreInMemory',
|
||||||
|
@ -56,4 +56,4 @@ export const VectorStoreInMemory = createVectorStoreNode({
|
||||||
|
|
||||||
void vectorStoreInstance.addDocuments(`${workflowId}__${memoryKey}`, documents, clearStore);
|
void vectorStoreInstance.addDocuments(`${workflowId}__${memoryKey}`, documents, clearStore);
|
||||||
},
|
},
|
||||||
});
|
}) {}
|
||||||
|
|
|
@ -212,7 +212,7 @@ class ExtendedPGVectorStore extends PGVectorStore {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const VectorStorePGVector = createVectorStoreNode({
|
export class VectorStorePGVector extends createVectorStoreNode({
|
||||||
meta: {
|
meta: {
|
||||||
description: 'Work with your data in Postgresql with the PGVector extension',
|
description: 'Work with your data in Postgresql with the PGVector extension',
|
||||||
icon: 'file:postgres.svg',
|
icon: 'file:postgres.svg',
|
||||||
|
@ -308,4 +308,4 @@ export const VectorStorePGVector = createVectorStoreNode({
|
||||||
|
|
||||||
await PGVectorStore.fromDocuments(documents, embeddings, config);
|
await PGVectorStore.fromDocuments(documents, embeddings, config);
|
||||||
},
|
},
|
||||||
});
|
}) {}
|
||||||
|
|
|
@ -49,7 +49,7 @@ const insertFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const VectorStorePinecone = createVectorStoreNode({
|
export class VectorStorePinecone extends createVectorStoreNode({
|
||||||
meta: {
|
meta: {
|
||||||
displayName: 'Pinecone Vector Store',
|
displayName: 'Pinecone Vector Store',
|
||||||
name: 'vectorStorePinecone',
|
name: 'vectorStorePinecone',
|
||||||
|
@ -132,4 +132,4 @@ export const VectorStorePinecone = createVectorStoreNode({
|
||||||
pineconeIndex,
|
pineconeIndex,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
}) {}
|
||||||
|
|
|
@ -78,7 +78,7 @@ const retrieveFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const VectorStoreQdrant = createVectorStoreNode({
|
export class VectorStoreQdrant extends createVectorStoreNode({
|
||||||
meta: {
|
meta: {
|
||||||
displayName: 'Qdrant Vector Store',
|
displayName: 'Qdrant Vector Store',
|
||||||
name: 'vectorStoreQdrant',
|
name: 'vectorStoreQdrant',
|
||||||
|
@ -134,4 +134,4 @@ export const VectorStoreQdrant = createVectorStoreNode({
|
||||||
|
|
||||||
await QdrantVectorStore.fromDocuments(documents, embeddings, config);
|
await QdrantVectorStore.fromDocuments(documents, embeddings, config);
|
||||||
},
|
},
|
||||||
});
|
}) {}
|
||||||
|
|
|
@ -39,7 +39,7 @@ const retrieveFields: INodeProperties[] = [
|
||||||
|
|
||||||
const updateFields: INodeProperties[] = [...insertFields];
|
const updateFields: INodeProperties[] = [...insertFields];
|
||||||
|
|
||||||
export const VectorStoreSupabase = createVectorStoreNode({
|
export class VectorStoreSupabase extends createVectorStoreNode({
|
||||||
meta: {
|
meta: {
|
||||||
description: 'Work with your data in Supabase Vector Store',
|
description: 'Work with your data in Supabase Vector Store',
|
||||||
icon: 'file:supabase.svg',
|
icon: 'file:supabase.svg',
|
||||||
|
@ -109,4 +109,4 @@ export const VectorStoreSupabase = createVectorStoreNode({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
}) {}
|
||||||
|
|
|
@ -44,7 +44,7 @@ const retrieveFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const VectorStoreZep = createVectorStoreNode({
|
export class VectorStoreZep extends createVectorStoreNode({
|
||||||
meta: {
|
meta: {
|
||||||
displayName: 'Zep Vector Store',
|
displayName: 'Zep Vector Store',
|
||||||
name: 'vectorStoreZep',
|
name: 'vectorStoreZep',
|
||||||
|
@ -130,4 +130,4 @@ export const VectorStoreZep = createVectorStoreNode({
|
||||||
throw new NodeOperationError(context.getNode(), error as Error, { itemIndex });
|
throw new NodeOperationError(context.getNode(), error as Error, { itemIndex });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
}) {}
|
||||||
|
|
Loading…
Reference in a new issue