@n8n/n8n-nodes-langchain 1.73.1 → 1.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +5 -3
- package/dist/build.tsbuildinfo +1 -1
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js +1 -0
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js.map +1 -1
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js +1 -0
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js +1 -0
- package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js +1 -1
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js.map +1 -1
- package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js +2 -0
- package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js.map +1 -1
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js +1 -0
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js.map +1 -1
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js +1 -0
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js.map +1 -1
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js +1 -0
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.js +1 -0
- package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js +1 -0
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js +1 -0
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js +1 -0
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js +1 -0
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js +1 -0
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js +1 -0
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js +1 -0
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js +1 -0
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js +1 -0
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js.map +1 -1
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js +1 -0
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js.map +1 -1
- package/dist/nodes/tools/ToolCode/ToolCode.node.js +1 -0
- package/dist/nodes/tools/ToolCode/ToolCode.node.js.map +1 -1
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js +10 -8
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.d.ts +3 -4
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js +13 -466
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.d.ts +6 -0
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js +194 -0
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js.map +1 -0
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.d.ts +2 -0
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.js +311 -0
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.js.map +1 -0
- package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.d.ts +12 -0
- package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.js +32 -0
- package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.js.map +1 -0
- package/dist/nodes/tools/ToolWorkflow/v2/utils/FromAIParser.d.ts +19 -0
- package/dist/nodes/tools/ToolWorkflow/v2/utils/FromAIParser.js +192 -0
- package/dist/nodes/tools/ToolWorkflow/v2/utils/FromAIParser.js.map +1 -0
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.d.ts +23 -0
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js +202 -0
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js.map +1 -0
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.d.ts +2 -0
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.js +134 -0
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.js.map +1 -0
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js +1 -0
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.js +1 -1
- package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.js +2 -2
- package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePinecone/pinecone.dark.svg +21 -0
- package/dist/nodes/vector_store/VectorStorePinecone/pinecone.svg +21 -1
- package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.js +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js +16 -4
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryVectorStoreManager.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode.d.ts +4 -3
- package/dist/nodes/vector_store/shared/createVectorStoreNode.js +111 -11
- package/dist/nodes/vector_store/shared/createVectorStoreNode.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/transport/index.js +7 -2
- package/dist/nodes/vendors/OpenAi/transport/index.js.map +1 -1
- package/dist/types/credentials.json +2 -2
- package/dist/types/nodes.json +30 -29
- package/dist/utils/N8nBinaryLoader.d.ts +2 -2
- package/dist/utils/N8nBinaryLoader.js +5 -5
- package/dist/utils/N8nBinaryLoader.js.map +1 -1
- package/dist/utils/N8nJsonLoader.d.ts +2 -2
- package/dist/utils/N8nJsonLoader.js +1 -1
- package/dist/utils/N8nJsonLoader.js.map +1 -1
- package/dist/utils/N8nTool.js +1 -1
- package/dist/utils/N8nTool.js.map +1 -1
- package/dist/utils/descriptions.js +2 -2
- package/dist/utils/descriptions.js.map +1 -1
- package/package.json +7 -7
|
@@ -50,7 +50,7 @@ class VectorStorePinecone extends (0, createVectorStoreNode_1.createVectorStoreN
|
|
|
50
50
|
displayName: 'Pinecone Vector Store',
|
|
51
51
|
name: 'vectorStorePinecone',
|
|
52
52
|
description: 'Work with your data in Pinecone Vector Store',
|
|
53
|
-
icon: 'file:pinecone.svg',
|
|
53
|
+
icon: { light: 'file:pinecone.svg', dark: 'file:pinecone.dark.svg' },
|
|
54
54
|
docsUrl: 'https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.vectorstorepinecone/',
|
|
55
55
|
credentials: [
|
|
56
56
|
{
|
|
@@ -58,7 +58,7 @@ class VectorStorePinecone extends (0, createVectorStoreNode_1.createVectorStoreN
|
|
|
58
58
|
required: true,
|
|
59
59
|
},
|
|
60
60
|
],
|
|
61
|
-
operationModes: ['load', 'insert', 'retrieve', 'update'],
|
|
61
|
+
operationModes: ['load', 'insert', 'retrieve', 'update', 'retrieve-as-tool'],
|
|
62
62
|
},
|
|
63
63
|
methods: { listSearch: { pineconeIndexSearch: listSearch_1.pineconeIndexSearch } },
|
|
64
64
|
retrieveFields,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorStorePinecone.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.ts"],"names":[],"mappings":";;;AACA,kDAAoD;AACpD,0DAAuD;AACvD,+CAAwE;AAExE,sDAA0D;AAE1D,2EAAwE;AACxE,yDAA0D;AAC1D,6DAAmE;AAEnE,MAAM,YAAY,GAAsB,CAAC,+BAAgB,CAAC,CAAC;AAE3D,MAAM,sBAAsB,GAAoB;IAC/C,WAAW,EAAE,oBAAoB;IACjC,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,QAAQ;IACd,WAAW,EACV,sLAAsL;IACvL,OAAO,EAAE,EAAE;CACX,CAAC;AAEF,MAAM,cAAc,GAAsB;IACzC;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,CAAC,sBAAsB,EAAE,kCAAmB,CAAC;KACtD;CACD,CAAC;AAEF,MAAM,YAAY,GAAsB;IACvC;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,0DAA0D;aACvE;YACD,sBAAsB;SACtB;KACD;CACD,CAAC;AAEF,MAAa,mBAAoB,SAAQ,IAAA,6CAAqB,EAAC;IAC9D,IAAI,EAAE;QACL,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,mBAAmB;
|
|
1
|
+
{"version":3,"file":"VectorStorePinecone.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.ts"],"names":[],"mappings":";;;AACA,kDAAoD;AACpD,0DAAuD;AACvD,+CAAwE;AAExE,sDAA0D;AAE1D,2EAAwE;AACxE,yDAA0D;AAC1D,6DAAmE;AAEnE,MAAM,YAAY,GAAsB,CAAC,+BAAgB,CAAC,CAAC;AAE3D,MAAM,sBAAsB,GAAoB;IAC/C,WAAW,EAAE,oBAAoB;IACjC,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,QAAQ;IACd,WAAW,EACV,sLAAsL;IACvL,OAAO,EAAE,EAAE;CACX,CAAC;AAEF,MAAM,cAAc,GAAsB;IACzC;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,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,OAAO,EAAE,EAAE,SAAS,KAAK,YAAY,EAAE;gBAC3E,SAAS;gBACT,WAAW,EAAE,yDAAyD;aACtE,CAAC,CAAC;QACJ,CAAC;QAED,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAE1C,IAAI,OAAO,CAAC,iBAAiB,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;YACzD,MAAM,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;YACrE,IAAI,CAAC;gBACJ,MAAM,SAAS,CAAC,SAAS,EAAE,CAAC;YAC7B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAEhB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,OAAO,CAAC,iBAAiB,qBAAqB,CAAC,CAAC;YAClF,CAAC;QACF,CAAC;QAED,MAAM,wBAAa,CAAC,aAAa,CAAC,SAAS,EAAE,UAAU,EAAE;YACxD,SAAS,EAAE,OAAO,CAAC,iBAAiB,IAAI,SAAS;YACjD,aAAa;SACb,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;CAAG;AAnFL,kDAmFK"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<svg width="32" height="35" viewBox="0 0 32 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.8555 34.2962C14.9325 34.2962 15.8055 33.4451 15.8055 32.3954C15.8055 31.3456 14.9325 30.4946 13.8555 30.4946C12.7786 30.4946 11.9055 31.3456 11.9055 32.3954C11.9055 33.4451 12.7786 34.2962 13.8555 34.2962Z" fill="white"/>
|
|
3
|
+
<path d="M18.4138 7.19675L19.2512 2.66005" stroke="white" stroke-width="2.11786" stroke-linecap="square"/>
|
|
4
|
+
<path d="M22.2656 5.5855L19.3466 2.11099L15.3748 4.37292" stroke="white" stroke-width="2.11786" stroke-linecap="square" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M14.9202 26.5528L15.7337 22.0169" stroke="white" stroke-width="2.11786" stroke-linecap="square"/>
|
|
6
|
+
<path d="M18.7729 24.9304L15.83 21.4671L11.8701 23.741" stroke="white" stroke-width="2.11786" stroke-linecap="square" stroke-linejoin="round"/>
|
|
7
|
+
<path d="M16.6077 17.1996L17.4212 12.6633" stroke="white" stroke-width="2.11786" stroke-linecap="square"/>
|
|
8
|
+
<path d="M20.4587 15.58L17.5277 12.128L13.5679 14.3904" stroke="white" stroke-width="2.11786" stroke-linecap="square" stroke-linejoin="round"/>
|
|
9
|
+
<path d="M8.32871 26.1554L4.75171 28.5815" stroke="white" stroke-width="2.01017" stroke-linecap="square"/>
|
|
10
|
+
<path d="M8.54383 30.0865L4.3208 28.8738L4.63185 24.5944" stroke="white" stroke-width="2.01017" stroke-linecap="square" stroke-linejoin="round"/>
|
|
11
|
+
<path d="M21.3213 28.4299L23.8096 31.9282" stroke="white" stroke-width="2.01017" stroke-linecap="square"/>
|
|
12
|
+
<path d="M19.718 32.045L24.1085 32.3365L25.3527 28.2438" stroke="white" stroke-width="2.01017" stroke-linecap="square" stroke-linejoin="round"/>
|
|
13
|
+
<path d="M25.3999 21.3291L29.7784 22.0996" stroke="white" stroke-width="2.05804" stroke-linecap="square"/>
|
|
14
|
+
<path d="M26.9072 25.072L30.3048 22.1919L28.1634 18.3557" stroke="white" stroke-width="2.05804" stroke-linecap="square" stroke-linejoin="round"/>
|
|
15
|
+
<path d="M24.1196 12.8615L28.0197 10.763" stroke="white" stroke-width="2.05804" stroke-linecap="square"/>
|
|
16
|
+
<path d="M24.3357 8.83965L28.4869 10.5188L27.7093 14.8216" stroke="white" stroke-width="2.05804" stroke-linecap="square" stroke-linejoin="round"/>
|
|
17
|
+
<path d="M6.91639 18.1572L2.52588 17.4101" stroke="white" stroke-width="2.05804" stroke-linecap="square"/>
|
|
18
|
+
<path d="M4.17731 21.1645L2 17.328L5.36167 14.436" stroke="white" stroke-width="2.05804" stroke-linecap="square" stroke-linejoin="round"/>
|
|
19
|
+
<path d="M11.0799 10.6129L8.14893 7.34769" stroke="white" stroke-width="2.05804" stroke-linecap="square"/>
|
|
20
|
+
<path d="M12.2897 6.77496L7.80349 6.96156L7.01392 11.2649" stroke="white" stroke-width="2.05804" stroke-linecap="square" stroke-linejoin="round"/>
|
|
21
|
+
</svg>
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
<svg
|
|
1
|
+
<svg width="32" height="35" viewBox="0 0 32 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.8555 34.2962C14.9325 34.2962 15.8055 33.4451 15.8055 32.3954C15.8055 31.3456 14.9325 30.4946 13.8555 30.4946C12.7786 30.4946 11.9055 31.3456 11.9055 32.3954C11.9055 33.4451 12.7786 34.2962 13.8555 34.2962Z" fill="black"/>
|
|
3
|
+
<path d="M18.4138 7.19675L19.2512 2.66005" stroke="black" stroke-width="2.11786" stroke-linecap="square"/>
|
|
4
|
+
<path d="M22.2656 5.5855L19.3466 2.11099L15.3748 4.37292" stroke="black" stroke-width="2.11786" stroke-linecap="square" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M14.9202 26.5528L15.7337 22.0169" stroke="black" stroke-width="2.11786" stroke-linecap="square"/>
|
|
6
|
+
<path d="M18.7729 24.9304L15.83 21.4671L11.8701 23.741" stroke="black" stroke-width="2.11786" stroke-linecap="square" stroke-linejoin="round"/>
|
|
7
|
+
<path d="M16.6077 17.1996L17.4212 12.6633" stroke="black" stroke-width="2.11786" stroke-linecap="square"/>
|
|
8
|
+
<path d="M20.4587 15.58L17.5277 12.128L13.5679 14.3904" stroke="black" stroke-width="2.11786" stroke-linecap="square" stroke-linejoin="round"/>
|
|
9
|
+
<path d="M8.32871 26.1554L4.75171 28.5815" stroke="black" stroke-width="2.01017" stroke-linecap="square"/>
|
|
10
|
+
<path d="M8.54383 30.0865L4.3208 28.8738L4.63185 24.5944" stroke="black" stroke-width="2.01017" stroke-linecap="square" stroke-linejoin="round"/>
|
|
11
|
+
<path d="M21.3213 28.4299L23.8096 31.9282" stroke="black" stroke-width="2.01017" stroke-linecap="square"/>
|
|
12
|
+
<path d="M19.718 32.045L24.1085 32.3365L25.3527 28.2438" stroke="black" stroke-width="2.01017" stroke-linecap="square" stroke-linejoin="round"/>
|
|
13
|
+
<path d="M25.3999 21.3291L29.7784 22.0996" stroke="black" stroke-width="2.05804" stroke-linecap="square"/>
|
|
14
|
+
<path d="M26.9072 25.072L30.3048 22.1919L28.1634 18.3557" stroke="black" stroke-width="2.05804" stroke-linecap="square" stroke-linejoin="round"/>
|
|
15
|
+
<path d="M24.1196 12.8615L28.0197 10.763" stroke="black" stroke-width="2.05804" stroke-linecap="square"/>
|
|
16
|
+
<path d="M24.3357 8.83965L28.4869 10.5188L27.7093 14.8216" stroke="black" stroke-width="2.05804" stroke-linecap="square" stroke-linejoin="round"/>
|
|
17
|
+
<path d="M6.91639 18.1572L2.52588 17.4101" stroke="black" stroke-width="2.05804" stroke-linecap="square"/>
|
|
18
|
+
<path d="M4.17731 21.1645L2 17.328L5.36167 14.436" stroke="black" stroke-width="2.05804" stroke-linecap="square" stroke-linejoin="round"/>
|
|
19
|
+
<path d="M11.0799 10.6129L8.14893 7.34769" stroke="black" stroke-width="2.05804" stroke-linecap="square"/>
|
|
20
|
+
<path d="M12.2897 6.77496L7.80349 6.96156L7.01392 11.2649" stroke="black" stroke-width="2.05804" stroke-linecap="square" stroke-linejoin="round"/>
|
|
21
|
+
</svg>
|
|
@@ -50,7 +50,7 @@ class VectorStoreSupabase extends (0, createVectorStoreNode_1.createVectorStoreN
|
|
|
50
50
|
required: true,
|
|
51
51
|
},
|
|
52
52
|
],
|
|
53
|
-
operationModes: ['load', 'insert', 'retrieve', 'update'],
|
|
53
|
+
operationModes: ['load', 'insert', 'retrieve', 'update', 'retrieve-as-tool'],
|
|
54
54
|
},
|
|
55
55
|
methods: {
|
|
56
56
|
listSearch: { supabaseTableNameSearch: listSearch_1.supabaseTableNameSearch },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorStoreSupabase.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.ts"],"names":[],"mappings":";;;AAAA,yEAAiF;AACjF,uDAAqD;AACrD,+CAAwE;AAExE,sDAA0D;AAE1D,2EAAwE;AACxE,yDAA8D;AAC9D,6DAAuE;AAEvE,MAAM,cAAc,GAAoB;IACvC,WAAW,EAAE,YAAY;IACzB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,iDAAiD;CAC9D,CAAC;AAEF,MAAM,YAAY,GAAsB,CAAC,mCAAoB,CAAC,CAAC;AAC/D,MAAM,YAAY,GAAsB;IACvC;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,CAAC,cAAc,CAAC;KACzB;CACD,CAAC;AAEF,MAAM,cAAc,GAAsB;IACzC;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,CAAC,cAAc,EAAE,kCAAmB,CAAC;KAC9C;CACD,CAAC;AAEF,MAAM,YAAY,GAAsB,CAAC,GAAG,YAAY,CAAC,CAAC;AAE1D,MAAa,mBAAoB,SAAQ,IAAA,6CAAqB,EAAC;IAC9D,IAAI,EAAE;QACL,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,uBAAuB;QACpC,OAAO,EACN,4GAA4G;QAC7G,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE;YACZ;gBACC,IAAI,EAAE,aAAa;gBACnB,QAAQ,EAAE,IAAI;aACd;SACD;QACD,cAAc,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"VectorStoreSupabase.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.ts"],"names":[],"mappings":";;;AAAA,yEAAiF;AACjF,uDAAqD;AACrD,+CAAwE;AAExE,sDAA0D;AAE1D,2EAAwE;AACxE,yDAA8D;AAC9D,6DAAuE;AAEvE,MAAM,cAAc,GAAoB;IACvC,WAAW,EAAE,YAAY;IACzB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,iDAAiD;CAC9D,CAAC;AAEF,MAAM,YAAY,GAAsB,CAAC,mCAAoB,CAAC,CAAC;AAC/D,MAAM,YAAY,GAAsB;IACvC;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,CAAC,cAAc,CAAC;KACzB;CACD,CAAC;AAEF,MAAM,cAAc,GAAsB;IACzC;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,CAAC,cAAc,EAAE,kCAAmB,CAAC;KAC9C;CACD,CAAC;AAEF,MAAM,YAAY,GAAsB,CAAC,GAAG,YAAY,CAAC,CAAC;AAE1D,MAAa,mBAAoB,SAAQ,IAAA,6CAAqB,EAAC;IAC9D,IAAI,EAAE;QACL,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,uBAAuB;QACpC,OAAO,EACN,4GAA4G;QAC7G,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE;YACZ;gBACC,IAAI,EAAE,aAAa;gBACnB,QAAQ,EA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AAC,cAAc,CAAC,aAAa,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,IAAA,0BAAY,EAAC,WAAW,CAAC,IAAc,EAAE,WAAW,CAAC,WAAqB,CAAC,CAAC;QAE3F,IAAI,CAAC;YACJ,MAAM,8BAAmB,CAAC,aAAa,CAAC,SAAS,EAAE,UAAU,EAAE;gBAC9D,MAAM;gBACN,SAAS;gBACT,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,iBAAiB;aACjD,CAAC,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAK,KAAe,CAAC,OAAO,KAAK,0CAA0C,EAAE,CAAC;gBAC7E,MAAM,IAAI,iCAAkB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,SAAS,SAAS,YAAY,EAAE;oBAC/E,SAAS;oBACT,WAAW,EAAE,yDAAyD;iBACtE,CAAC,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACP,MAAM,IAAI,iCAAkB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,KAAc,EAAE;oBAC/D,SAAS;iBACT,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;IACF,CAAC;CACD,CAAC;CAAG;AAtEL,kDAsEK"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VectorStoreZep = void 0;
|
|
4
4
|
const zep_1 = require("@langchain/community/vectorstores/zep");
|
|
5
|
+
const zep_cloud_1 = require("@langchain/community/vectorstores/zep_cloud");
|
|
5
6
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
7
|
const sharedFields_1 = require("../../../utils/sharedFields");
|
|
7
8
|
const createVectorStoreNode_1 = require("../shared/createVectorStoreNode");
|
|
@@ -72,27 +73,38 @@ class VectorStoreZep extends (0, createVectorStoreNode_1.createVectorStoreNode)(
|
|
|
72
73
|
const options = context.getNodeParameter('options', itemIndex) || {};
|
|
73
74
|
const credentials = await context.getCredentials('zepApi');
|
|
74
75
|
const zepConfig = {
|
|
75
|
-
apiUrl: credentials.apiUrl,
|
|
76
76
|
apiKey: credentials.apiKey,
|
|
77
77
|
collectionName,
|
|
78
78
|
embeddingDimensions: options.embeddingDimensions ?? 1536,
|
|
79
79
|
metadata: filter,
|
|
80
80
|
};
|
|
81
|
-
|
|
81
|
+
if (credentials.cloud) {
|
|
82
|
+
return new zep_cloud_1.ZepCloudVectorStore(embeddings, zepConfig);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
return new zep_1.ZepVectorStore(embeddings, { ...zepConfig, apiUrl: credentials.apiUrl });
|
|
86
|
+
}
|
|
82
87
|
},
|
|
83
88
|
async populateVectorStore(context, embeddings, documents, itemIndex) {
|
|
84
89
|
const collectionName = context.getNodeParameter('collectionName', itemIndex);
|
|
85
90
|
const options = context.getNodeParameter('options', itemIndex) || {};
|
|
86
91
|
const credentials = await context.getCredentials('zepApi');
|
|
87
92
|
const zepConfig = {
|
|
88
|
-
apiUrl: credentials.apiUrl,
|
|
89
93
|
apiKey: credentials.apiKey,
|
|
90
94
|
collectionName,
|
|
91
95
|
embeddingDimensions: options.embeddingDimensions ?? 1536,
|
|
92
96
|
isAutoEmbedded: options.isAutoEmbedded ?? true,
|
|
93
97
|
};
|
|
94
98
|
try {
|
|
95
|
-
|
|
99
|
+
if (credentials.cloud) {
|
|
100
|
+
await zep_cloud_1.ZepCloudVectorStore.fromDocuments(documents, embeddings, zepConfig);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
await zep_1.ZepVectorStore.fromDocuments(documents, embeddings, {
|
|
104
|
+
...zepConfig,
|
|
105
|
+
apiUrl: credentials.apiUrl,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
96
108
|
}
|
|
97
109
|
catch (error) {
|
|
98
110
|
const errorCode = error.code;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorStoreZep.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStoreZep/VectorStoreZep.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"VectorStoreZep.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStoreZep/VectorStoreZep.node.ts"],"names":[],"mappings":";;;AAAA,+DAAuE;AACvE,2EAAkF;AAElF,+CAAkD;AAElD,sDAA0D;AAE1D,2EAAwE;AAExE,MAAM,mBAAmB,GAAoB;IAC5C,WAAW,EAAE,sBAAsB;IACnC,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,IAAI;IACb,WAAW,EAAE,qEAAqE;CAClF,CAAC;AAEF,MAAM,YAAY,GAAsB;IACvC;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR,mBAAmB;YACnB;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,8DAA8D;aAC3E;SACD;KACD;CACD,CAAC;AAEF,MAAM,cAAc,GAAsB;IACzC;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,CAAC,mBAAmB,EAAE,kCAAmB,CAAC;KACnD;CACD,CAAC;AAEF,MAAa,cAAe,SAAQ,IAAA,6CAAqB,EAAC;IACzD,IAAI,EAAE;QACL,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,yCAAyC;QACtD,WAAW,EAAE;YACZ;gBACC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACd;SACD;QACD,IAAI,EAAE,cAAc;QACpB,OAAO,EACN,uGAAuG;K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"mappings":";;;AAEA,0DAAkE;AAElE,MAAa,wBAAwB;IAKpC,YAA4B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QACjD,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,EAAE,CAAC;IACpC,CAAC;
|
|
1
|
+
{"version":3,"file":"MemoryVectorStoreManager.js","sourceRoot":"","sources":["../../../../nodes/vector_store/shared/MemoryVectorStoreManager.ts"],"names":[],"mappings":";;;AAEA,0DAAkE;AAElE,MAAa,wBAAwB;IAKpC,YAA4B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QACjD,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,EAAE,CAAC;IACpC,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,UAAsB;QACxC,IAAI,CAAC,wBAAwB,CAAC,QAAQ,EAAE,CAAC;YACxC,wBAAwB,CAAC,QAAQ,GAAG,IAAI,wBAAwB,CAAC,UAAU,CAAC,CAAC;QAC9E,CAAC;aAAM,CAAC;YAIP,wBAAwB,CAAC,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;YAC1D,wBAAwB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,mBAAmB,EAAE,EAAE;gBACnF,mBAAmB,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7C,CAAC,CAAC,CAAC;QACJ,CAAC;QAED,OAAO,wBAAwB,CAAC,QAAQ,CAAC;IAC1C,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,SAAiB;QACrC,IAAI,mBAAmB,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAEhE,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC1B,mBAAmB,GAAG,MAAM,0BAAiB,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACjF,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;QAC5D,CAAC;QAED,OAAO,mBAAmB,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,YAAY,CACjB,SAAiB,EACjB,SAAqB,EACrB,UAAoB;QAEpB,IAAI,UAAU,EAAE,CAAC;YAChB,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC1C,CAAC;QACD,MAAM,mBAAmB,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QACjE,MAAM,mBAAmB,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IACnD,CAAC;;AA9CF,4DA+CC;AA9Ce,iCAAQ,GAAoC,IAAI,CAAC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type { Document } from '@langchain/core/documents';
|
|
2
2
|
import type { Embeddings } from '@langchain/core/embeddings';
|
|
3
3
|
import type { VectorStore } from '@langchain/core/vectorstores';
|
|
4
|
-
import type { IExecuteFunctions, INodeCredentialDescription, INodeProperties, INodeExecutionData, INodeTypeDescription, SupplyData, ISupplyDataFunctions, ILoadOptionsFunctions, INodeListSearchResult, Icon } from 'n8n-workflow';
|
|
5
|
-
type NodeOperationMode = 'insert' | 'load' | 'retrieve' | 'update';
|
|
4
|
+
import type { IExecuteFunctions, INodeCredentialDescription, INodeProperties, INodeExecutionData, INodeTypeDescription, SupplyData, ISupplyDataFunctions, ILoadOptionsFunctions, INodeListSearchResult, Icon, ThemeIconColor } from 'n8n-workflow';
|
|
5
|
+
type NodeOperationMode = 'insert' | 'load' | 'retrieve' | 'update' | 'retrieve-as-tool';
|
|
6
6
|
interface NodeMeta {
|
|
7
7
|
displayName: string;
|
|
8
8
|
name: string;
|
|
9
9
|
description: string;
|
|
10
10
|
docsUrl: string;
|
|
11
11
|
icon: Icon;
|
|
12
|
+
iconColor?: ThemeIconColor;
|
|
12
13
|
credentials?: INodeCredentialDescription[];
|
|
13
14
|
operationModes?: NodeOperationMode[];
|
|
14
15
|
}
|
|
15
|
-
interface VectorStoreNodeConstructorArgs {
|
|
16
|
+
export interface VectorStoreNodeConstructorArgs {
|
|
16
17
|
meta: NodeMeta;
|
|
17
18
|
methods?: {
|
|
18
19
|
listSearch?: {
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createVectorStoreNode = void 0;
|
|
4
|
+
const tools_1 = require("langchain/tools");
|
|
4
5
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
6
|
const helpers_1 = require("../../../utils/helpers");
|
|
6
7
|
const logWrapper_1 = require("../../../utils/logWrapper");
|
|
7
8
|
const N8nJsonLoader_1 = require("../../../utils/N8nJsonLoader");
|
|
8
9
|
const sharedFields_1 = require("../../../utils/sharedFields");
|
|
9
10
|
const processDocuments_1 = require("./processDocuments");
|
|
10
|
-
const DEFAULT_OPERATION_MODES = [
|
|
11
|
+
const DEFAULT_OPERATION_MODES = [
|
|
12
|
+
'load',
|
|
13
|
+
'insert',
|
|
14
|
+
'retrieve',
|
|
15
|
+
'retrieve-as-tool',
|
|
16
|
+
];
|
|
11
17
|
function transformDescriptionForOperationMode(fields, mode) {
|
|
12
18
|
return fields.map((field) => ({
|
|
13
19
|
...field,
|
|
14
|
-
displayOptions: { show: { mode: [mode] } },
|
|
20
|
+
displayOptions: { show: { mode: Array.isArray(mode) ? mode : [mode] } },
|
|
15
21
|
}));
|
|
16
22
|
}
|
|
17
23
|
function isUpdateSupported(args) {
|
|
@@ -33,10 +39,18 @@ function getOperationModeOptions(args) {
|
|
|
33
39
|
action: 'Add documents to vector store',
|
|
34
40
|
},
|
|
35
41
|
{
|
|
36
|
-
name: 'Retrieve Documents (
|
|
42
|
+
name: 'Retrieve Documents (As Vector Store for Chain/Tool)',
|
|
37
43
|
value: 'retrieve',
|
|
38
|
-
description: 'Retrieve documents from vector store to be used with AI nodes',
|
|
39
|
-
action: 'Retrieve documents for
|
|
44
|
+
description: 'Retrieve documents from vector store to be used as vector store with AI nodes',
|
|
45
|
+
action: 'Retrieve documents for Chain/Tool as Vector Store',
|
|
46
|
+
outputConnectionType: "ai_vectorStore",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'Retrieve Documents (As Tool for AI Agent)',
|
|
50
|
+
value: 'retrieve-as-tool',
|
|
51
|
+
description: 'Retrieve documents from vector store to be used as tool with AI nodes',
|
|
52
|
+
action: 'Retrieve documents for AI Agent as Tool',
|
|
53
|
+
outputConnectionType: "ai_tool",
|
|
40
54
|
},
|
|
41
55
|
{
|
|
42
56
|
name: 'Update Documents',
|
|
@@ -54,6 +68,7 @@ const createVectorStoreNode = (args) => class VectorStoreNodeType {
|
|
|
54
68
|
name: args.meta.name,
|
|
55
69
|
description: args.meta.description,
|
|
56
70
|
icon: args.meta.icon,
|
|
71
|
+
iconColor: args.meta.iconColor,
|
|
57
72
|
group: ['transform'],
|
|
58
73
|
version: 1,
|
|
59
74
|
defaults: {
|
|
@@ -62,7 +77,8 @@ const createVectorStoreNode = (args) => class VectorStoreNodeType {
|
|
|
62
77
|
codex: {
|
|
63
78
|
categories: ['AI'],
|
|
64
79
|
subcategories: {
|
|
65
|
-
AI: ['Vector Stores', 'Root Nodes'],
|
|
80
|
+
AI: ['Vector Stores', 'Tools', 'Root Nodes'],
|
|
81
|
+
Tools: ['Other Tools'],
|
|
66
82
|
},
|
|
67
83
|
resources: {
|
|
68
84
|
primaryDocumentation: [
|
|
@@ -78,6 +94,10 @@ const createVectorStoreNode = (args) => class VectorStoreNodeType {
|
|
|
78
94
|
const mode = parameters?.mode;
|
|
79
95
|
const inputs = [{ displayName: "Embedding", type: "${"ai_embedding"}", required: true, maxConnections: 1}]
|
|
80
96
|
|
|
97
|
+
if (mode === 'retrieve-as-tool') {
|
|
98
|
+
return inputs;
|
|
99
|
+
}
|
|
100
|
+
|
|
81
101
|
if (['insert', 'load', 'update'].includes(mode)) {
|
|
82
102
|
inputs.push({ displayName: "", type: "${"main"}"})
|
|
83
103
|
}
|
|
@@ -91,6 +111,11 @@ const createVectorStoreNode = (args) => class VectorStoreNodeType {
|
|
|
91
111
|
outputs: `={{
|
|
92
112
|
((parameters) => {
|
|
93
113
|
const mode = parameters?.mode ?? 'retrieve';
|
|
114
|
+
|
|
115
|
+
if (mode === 'retrieve-as-tool') {
|
|
116
|
+
return [{ displayName: "Tool", type: "${"ai_tool"}"}]
|
|
117
|
+
}
|
|
118
|
+
|
|
94
119
|
if (mode === 'retrieve') {
|
|
95
120
|
return [{ displayName: "Vector Store", type: "${"ai_vectorStore"}"}]
|
|
96
121
|
}
|
|
@@ -114,6 +139,36 @@ const createVectorStoreNode = (args) => class VectorStoreNodeType {
|
|
|
114
139
|
},
|
|
115
140
|
},
|
|
116
141
|
},
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Name',
|
|
144
|
+
name: 'toolName',
|
|
145
|
+
type: 'string',
|
|
146
|
+
default: '',
|
|
147
|
+
required: true,
|
|
148
|
+
description: 'Name of the vector store',
|
|
149
|
+
placeholder: 'e.g. company_knowledge_base',
|
|
150
|
+
validateType: 'string-alphanumeric',
|
|
151
|
+
displayOptions: {
|
|
152
|
+
show: {
|
|
153
|
+
mode: ['retrieve-as-tool'],
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
displayName: 'Description',
|
|
159
|
+
name: 'toolDescription',
|
|
160
|
+
type: 'string',
|
|
161
|
+
default: '',
|
|
162
|
+
required: true,
|
|
163
|
+
typeOptions: { rows: 2 },
|
|
164
|
+
description: 'Explain to the LLM what this tool does, a good, specific description would allow LLMs to produce expected results much more often',
|
|
165
|
+
placeholder: `e.g. ${args.meta.description}`,
|
|
166
|
+
displayOptions: {
|
|
167
|
+
show: {
|
|
168
|
+
mode: ['retrieve-as-tool'],
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
117
172
|
...args.sharedFields,
|
|
118
173
|
...transformDescriptionForOperationMode(args.insertFields ?? [], 'insert'),
|
|
119
174
|
{
|
|
@@ -137,7 +192,19 @@ const createVectorStoreNode = (args) => class VectorStoreNodeType {
|
|
|
137
192
|
description: 'Number of top results to fetch from vector store',
|
|
138
193
|
displayOptions: {
|
|
139
194
|
show: {
|
|
140
|
-
mode: ['load'],
|
|
195
|
+
mode: ['load', 'retrieve-as-tool'],
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
displayName: 'Include Metadata',
|
|
201
|
+
name: 'includeDocumentMetadata',
|
|
202
|
+
type: 'boolean',
|
|
203
|
+
default: true,
|
|
204
|
+
description: 'Whether or not to include document metadata',
|
|
205
|
+
displayOptions: {
|
|
206
|
+
show: {
|
|
207
|
+
mode: ['load', 'retrieve-as-tool'],
|
|
141
208
|
},
|
|
142
209
|
},
|
|
143
210
|
},
|
|
@@ -154,7 +221,10 @@ const createVectorStoreNode = (args) => class VectorStoreNodeType {
|
|
|
154
221
|
},
|
|
155
222
|
},
|
|
156
223
|
},
|
|
157
|
-
...transformDescriptionForOperationMode(args.loadFields ?? [],
|
|
224
|
+
...transformDescriptionForOperationMode(args.loadFields ?? [], [
|
|
225
|
+
'load',
|
|
226
|
+
'retrieve-as-tool',
|
|
227
|
+
]),
|
|
158
228
|
...transformDescriptionForOperationMode(args.retrieveFields ?? [], 'retrieve'),
|
|
159
229
|
...transformDescriptionForOperationMode(args.updateFields ?? [], 'update'),
|
|
160
230
|
],
|
|
@@ -174,10 +244,11 @@ const createVectorStoreNode = (args) => class VectorStoreNodeType {
|
|
|
174
244
|
const topK = this.getNodeParameter('topK', itemIndex, 4);
|
|
175
245
|
const embeddedPrompt = await embeddings.embedQuery(prompt);
|
|
176
246
|
const docs = await vectorStore.similaritySearchVectorWithScore(embeddedPrompt, topK, filter);
|
|
247
|
+
const includeDocumentMetadata = this.getNodeParameter('includeDocumentMetadata', itemIndex, true);
|
|
177
248
|
const serializedDocs = docs.map(([doc, score]) => {
|
|
178
249
|
const document = {
|
|
179
|
-
metadata: doc.metadata,
|
|
180
250
|
pageContent: doc.pageContent,
|
|
251
|
+
...(includeDocumentMetadata ? { metadata: doc.metadata } : {}),
|
|
181
252
|
};
|
|
182
253
|
return {
|
|
183
254
|
json: { document, score },
|
|
@@ -242,7 +313,7 @@ const createVectorStoreNode = (args) => class VectorStoreNodeType {
|
|
|
242
313
|
}
|
|
243
314
|
return [resultData];
|
|
244
315
|
}
|
|
245
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Only the "load" and "insert" operation modes are supported with execute');
|
|
316
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Only the "load", "update" and "insert" operation modes are supported with execute');
|
|
246
317
|
}
|
|
247
318
|
async supplyData(itemIndex) {
|
|
248
319
|
const mode = this.getNodeParameter('mode', 0);
|
|
@@ -254,7 +325,36 @@ const createVectorStoreNode = (args) => class VectorStoreNodeType {
|
|
|
254
325
|
response: (0, logWrapper_1.logWrapper)(vectorStore, this),
|
|
255
326
|
};
|
|
256
327
|
}
|
|
257
|
-
|
|
328
|
+
if (mode === 'retrieve-as-tool') {
|
|
329
|
+
const toolDescription = this.getNodeParameter('toolDescription', itemIndex);
|
|
330
|
+
const toolName = this.getNodeParameter('toolName', itemIndex);
|
|
331
|
+
const topK = this.getNodeParameter('topK', itemIndex, 4);
|
|
332
|
+
const includeDocumentMetadata = this.getNodeParameter('includeDocumentMetadata', itemIndex, true);
|
|
333
|
+
const vectorStoreTool = new tools_1.DynamicTool({
|
|
334
|
+
name: toolName,
|
|
335
|
+
description: toolDescription,
|
|
336
|
+
func: async (input) => {
|
|
337
|
+
const vectorStore = await args.getVectorStoreClient(this, filter, embeddings, itemIndex);
|
|
338
|
+
const embeddedPrompt = await embeddings.embedQuery(input);
|
|
339
|
+
const documents = await vectorStore.similaritySearchVectorWithScore(embeddedPrompt, topK, filter);
|
|
340
|
+
return documents
|
|
341
|
+
.map((document) => {
|
|
342
|
+
if (includeDocumentMetadata) {
|
|
343
|
+
return { type: 'text', text: JSON.stringify(document[0]) };
|
|
344
|
+
}
|
|
345
|
+
return {
|
|
346
|
+
type: 'text',
|
|
347
|
+
text: JSON.stringify({ pageContent: document[0].pageContent }),
|
|
348
|
+
};
|
|
349
|
+
})
|
|
350
|
+
.filter((document) => !!document);
|
|
351
|
+
},
|
|
352
|
+
});
|
|
353
|
+
return {
|
|
354
|
+
response: (0, logWrapper_1.logWrapper)(vectorStoreTool, this),
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Only the "retrieve" and "retrieve-as-tool" operation mode is supported to supply data');
|
|
258
358
|
}
|
|
259
359
|
};
|
|
260
360
|
exports.createVectorStoreNode = createVectorStoreNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createVectorStoreNode.js","sourceRoot":"","sources":["../../../../nodes/vector_store/shared/createVectorStoreNode.ts"],"names":[],"mappings":";;;AAKA,+CAAsE;
|
|
1
|
+
{"version":3,"file":"createVectorStoreNode.js","sourceRoot":"","sources":["../../../../nodes/vector_store/shared/createVectorStoreNode.ts"],"names":[],"mappings":";;;AAKA,2CAA8C;AAC9C,+CAAsE;AAiBtE,4CAAsE;AACtE,kDAA+C;AAE/C,wDAAqD;AACrD,sDAAmE;AAEnE,yDAAqD;AAIrD,MAAM,uBAAuB,GAAwB;IACpD,MAAM;IACN,QAAQ;IACR,UAAU;IACV,kBAAkB;CAClB,CAAC;AA4CF,SAAS,oCAAoC,CAC5C,MAAyB,EACzB,IAA6C;IAE7C,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAC7B,GAAG,KAAK;QACR,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE;KACvE,CAAC,CAAC,CAAC;AACL,CAA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SAAS,CACT,CAAC;oBACF,MAAM,cAAc,GAAG,MAAM,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;oBAC1D,MAAM,SAAS,GAAG,MAAM,WAAW,CAAC,+BAA+B,CAClE,cAAc,EACd,IAAI,EACJ,MAAM,CACN,CAAC;oBACF,OAAO,SAAS;yBACd,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;wBACjB,IAAI,uBAAuB,EAAE,CAAC;4BAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;wBAC5D,CAAC;wBACD,OAAO;4BACN,IAAI,EAAE,MAAM;4BACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;yBAC9D,CAAC;oBACH,CAAC,CAAC;yBACD,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;gBACpC,CAAC;aACD,CAAC,CAAC;YAEH,OAAO;gBACN,QAAQ,EAAE,IAAA,uBAAU,EAAC,eAAe,EAAE,IAAI,CAAC;aAC3C,CAAC;QACH,CAAC;QAED,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,uFAAuF,CACvF,CAAC;IACH,CAAC;CACD,CAAC;AAxYU,QAAA,qBAAqB,yBAwY/B"}
|
|
@@ -2,13 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.apiRequest = apiRequest;
|
|
4
4
|
async function apiRequest(method, endpoint, parameters) {
|
|
5
|
-
const { body, qs,
|
|
5
|
+
const { body, qs, option, headers } = parameters ?? {};
|
|
6
|
+
const credentials = await this.getCredentials('openAiApi');
|
|
7
|
+
let uri = `https://api.openai.com/v1${endpoint}`;
|
|
8
|
+
if (credentials.url) {
|
|
9
|
+
uri = `${credentials?.url}${endpoint}`;
|
|
10
|
+
}
|
|
6
11
|
const options = {
|
|
7
12
|
headers,
|
|
8
13
|
method,
|
|
9
14
|
body,
|
|
10
15
|
qs,
|
|
11
|
-
uri
|
|
16
|
+
uri,
|
|
12
17
|
json: true,
|
|
13
18
|
};
|
|
14
19
|
if (option && Object.keys(option).length !== 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/vendors/OpenAi/transport/index.ts"],"names":[],"mappings":";;AAcA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/vendors/OpenAi/transport/index.ts"],"names":[],"mappings":";;AAcA,gCA8BC;AA9BM,KAAK,UAAU,UAAU,CAE/B,MAA2B,EAC3B,QAAgB,EAChB,UAA8B;IAE9B,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,IAAI,EAAE,CAAC;IAEvD,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAE3D,IAAI,GAAG,GAAG,4BAA4B,QAAQ,EAAE,CAAC;IAEjD,IAAI,WAAW,CAAC,GAAG,EAAE,CAAC;QACrB,GAAG,GAAG,GAAG,WAAW,EAAE,GAAG,GAAG,QAAQ,EAAE,CAAC;IACxC,CAAC;IAED,MAAM,OAAO,GAAG;QACf,OAAO;QACP,MAAM;QACN,IAAI;QACJ,EAAE;QACF,GAAG;QACH,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChD,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;AACtF,CAAC"}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
{"name":"googlePalmApi","displayName":"Google Gemini(PaLM) Api","documentationUrl":"google","properties":[{"displayName":"Host","name":"host","required":true,"type":"string","default":"https://generativelanguage.googleapis.com"},{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"qs":{"key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.host}}/v1beta/models"}},"supportedNodes":["embeddingsGoogleGemini","lmChatGoogleGemini"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsGoogleGemini/google.svg"},
|
|
6
6
|
{"name":"groqApi","displayName":"Groq","documentationUrl":"groq","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.groq.com/openai/v1","url":"/models"}},"supportedNodes":["lmChatGroq"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/llms/LmChatGroq/groq.svg"},
|
|
7
7
|
{"name":"huggingFaceApi","displayName":"HuggingFaceApi","documentationUrl":"huggingface","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api-inference.huggingface.co","url":"/models/gpt2"}},"supportedNodes":["embeddingsHuggingFaceInference","lmOpenHuggingFaceInference"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/huggingface.svg"},
|
|
8
|
-
{"name":"motorheadApi","displayName":"MotorheadApi","documentationUrl":"motorhead","properties":[{"displayName":"Host","name":"host","required":true,"type":"string","default":"https://api.getmetal.io/v1"},{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""},{"displayName":"Client ID","name":"clientId","type":"string","default":""}],"authenticate":{"type":"generic","properties":{"headers":{"x-metal-client-id":"={{$credentials.clientId}}","x-metal-api-key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.host}}/keys/current"}},"supportedNodes":["memoryMotorhead"],"icon":"fa:file-export"},
|
|
8
|
+
{"name":"motorheadApi","displayName":"MotorheadApi","documentationUrl":"motorhead","properties":[{"displayName":"Host","name":"host","required":true,"type":"string","default":"https://api.getmetal.io/v1"},{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""},{"displayName":"Client ID","name":"clientId","type":"string","default":""}],"authenticate":{"type":"generic","properties":{"headers":{"x-metal-client-id":"={{$credentials.clientId}}","x-metal-api-key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.host}}/keys/current"}},"supportedNodes":["memoryMotorhead"],"icon":"fa:file-export","iconColor":"black"},
|
|
9
9
|
{"name":"mistralCloudApi","displayName":"Mistral Cloud API","documentationUrl":"mistral","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Authorization":"=Bearer {{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.mistral.ai/v1","url":"/models","method":"GET"}},"supportedNodes":["embeddingsMistralCloud","lmChatMistralCloud"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsMistralCloud/mistral.svg"},
|
|
10
10
|
{"name":"ollamaApi","displayName":"Ollama","documentationUrl":"ollama","properties":[{"displayName":"Base URL","name":"baseUrl","required":true,"type":"string","default":"http://localhost:11434"}],"test":{"request":{"baseURL":"={{ $credentials.baseUrl }}","url":"/","method":"GET"}},"supportedNodes":["embeddingsOllama","lmChatOllama","lmOllama"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/embeddings/EmbeddingsOllama/ollama.svg"},
|
|
11
|
-
{"name":"pineconeApi","displayName":"PineconeApi","documentationUrl":"pinecone","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Api-Key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.pinecone.io/indexes","headers":{"accept":"application/json; charset=utf-8"}}},"supportedNodes":["vectorStorePinecone","vectorStorePineconeInsert","vectorStorePineconeLoad"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/vector_store/VectorStorePinecone/pinecone.svg"},
|
|
11
|
+
{"name":"pineconeApi","displayName":"PineconeApi","documentationUrl":"pinecone","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"Api-Key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://api.pinecone.io/indexes","headers":{"accept":"application/json; charset=utf-8"}}},"supportedNodes":["vectorStorePinecone","vectorStorePineconeInsert","vectorStorePineconeLoad"],"iconUrl":{"light":"icons/@n8n/n8n-nodes-langchain/dist/nodes/vector_store/VectorStorePinecone/pinecone.svg","dark":"icons/@n8n/n8n-nodes-langchain/dist/nodes/vector_store/VectorStorePinecone/pinecone.dark.svg"}},
|
|
12
12
|
{"name":"qdrantApi","displayName":"QdrantApi","documentationUrl":"https://docs.n8n.io/integrations/builtin/credentials/qdrant/","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":false,"default":""},{"displayName":"Qdrant URL","name":"qdrantUrl","type":"string","required":true,"default":""}],"authenticate":{"type":"generic","properties":{"headers":{"api-key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"={{$credentials.qdrantUrl}}","headers":{"accept":"application/json; charset=utf-8"}}},"supportedNodes":["vectorStoreQdrant"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/vector_store/VectorStoreQdrant/qdrant.svg"},
|
|
13
13
|
{"name":"serpApi","displayName":"SerpAPI","documentationUrl":"serp","properties":[{"displayName":"API Key","name":"apiKey","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"qs":{"api_key":"={{$credentials.apiKey}}"}}},"test":{"request":{"baseURL":"https://serpapi.com","url":"/account.json "}},"supportedNodes":["toolSerpApi"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/tools/ToolSerpApi/serpApi.svg"},
|
|
14
14
|
{"name":"wolframAlphaApi","displayName":"WolframAlphaApi","documentationUrl":"wolframalpha","properties":[{"displayName":"App ID","name":"appId","type":"string","typeOptions":{"password":true},"required":true,"default":""}],"authenticate":{"type":"generic","properties":{"qs":{"api_key":"={{$credentials.appId}}"}}},"test":{"request":{"baseURL":"https://api.wolframalpha.com/v1","url":"=/simple","qs":{"i":"How much is 1 1","appid":"={{$credentials.appId}}"}}},"supportedNodes":["toolWolframAlpha"],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/tools/ToolWolframAlpha/wolfram-alpha.svg"},
|