@n8n/n8n-nodes-langchain 1.83.1 → 1.85.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/dist/build.tsbuildinfo +1 -1
- package/dist/credentials/XAiApi.credentials.d.ts +9 -0
- package/dist/credentials/XAiApi.credentials.js +42 -0
- package/dist/credentials/XAiApi.credentials.js.map +1 -0
- package/dist/known/credentials.json +7 -0
- package/dist/known/nodes.json +8 -0
- package/dist/nodes/agents/Agent/Agent.node.js +32 -30
- package/dist/nodes/agents/Agent/Agent.node.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js +11 -21
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.js +5 -9
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.js +4 -8
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js +4 -8
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.js +2 -2
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/execute.js +7 -8
- package/dist/nodes/agents/Agent/agents/ToolsAgent/execute.js.map +1 -1
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js +3 -3
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js +17 -389
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/chainExecutor.d.ts +2 -0
- package/dist/nodes/chains/ChainLLM/methods/chainExecutor.js +50 -0
- package/dist/nodes/chains/ChainLLM/methods/chainExecutor.js.map +1 -0
- package/dist/nodes/chains/ChainLLM/methods/config.d.ts +3 -0
- package/dist/nodes/chains/ChainLLM/methods/config.js +254 -0
- package/dist/nodes/chains/ChainLLM/methods/config.js.map +1 -0
- package/dist/nodes/chains/ChainLLM/methods/imageUtils.d.ts +12 -0
- package/dist/nodes/chains/ChainLLM/methods/imageUtils.js +66 -0
- package/dist/nodes/chains/ChainLLM/methods/imageUtils.js.map +1 -0
- package/dist/nodes/chains/ChainLLM/methods/index.d.ts +4 -0
- package/dist/nodes/chains/ChainLLM/methods/index.js +11 -0
- package/dist/nodes/chains/ChainLLM/methods/index.js.map +1 -0
- package/dist/nodes/chains/ChainLLM/methods/promptUtils.d.ts +3 -0
- package/dist/nodes/chains/ChainLLM/methods/promptUtils.js +69 -0
- package/dist/nodes/chains/ChainLLM/methods/promptUtils.js.map +1 -0
- package/dist/nodes/chains/ChainLLM/methods/responseFormatter.d.ts +2 -0
- package/dist/nodes/chains/ChainLLM/methods/responseFormatter.js +26 -0
- package/dist/nodes/chains/ChainLLM/methods/responseFormatter.js.map +1 -0
- package/dist/nodes/chains/ChainLLM/methods/types.d.ts +28 -0
- package/dist/nodes/chains/ChainLLM/methods/types.js +3 -0
- package/dist/nodes/chains/ChainLLM/methods/types.js.map +1 -0
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js +74 -39
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.js +7 -6
- package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.js +9 -8
- package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js +4 -4
- package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js.map +1 -1
- package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js +4 -4
- package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js.map +1 -1
- package/dist/nodes/chains/TextClassifier/TextClassifier.node.js +5 -5
- package/dist/nodes/chains/TextClassifier/TextClassifier.node.js.map +1 -1
- package/dist/nodes/code/Code.node.js +11 -11
- package/dist/nodes/code/Code.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js +5 -4
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js +4 -3
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js +7 -6
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js +5 -4
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.js +3 -2
- package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js +3 -2
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.js +3 -2
- package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.js +3 -2
- package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.js +3 -2
- package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.js +3 -2
- package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js +3 -2
- package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js +3 -2
- package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js +3 -2
- package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js.map +1 -1
- package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.js +3 -2
- package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js +5 -4
- package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js +3 -1
- package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js.map +1 -1
- package/dist/nodes/llms/LMCohere/LmCohere.node.js +3 -2
- package/dist/nodes/llms/LMCohere/LmCohere.node.js.map +1 -1
- package/dist/nodes/llms/LMOllama/LmOllama.node.js +3 -2
- package/dist/nodes/llms/LMOllama/LmOllama.node.js.map +1 -1
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js +2 -1
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.js +3 -2
- package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.js.map +1 -1
- package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.js +3 -2
- package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js +4 -3
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.js +3 -2
- package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.js.map +1 -1
- package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js +3 -2
- package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js.map +1 -1
- package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js +2 -2
- package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js.map +1 -1
- package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.js +3 -2
- package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.js.map +1 -1
- package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js +3 -2
- package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js.map +1 -1
- package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.js +3 -2
- package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.js.map +1 -1
- package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.js +223 -0
- package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.js.map +1 -0
- package/dist/nodes/llms/LmChatXAiGrok/logo.dark.svg +1 -0
- package/dist/nodes/llms/LmChatXAiGrok/logo.svg +1 -0
- package/dist/nodes/llms/N8nLlmTracing.d.ts +2 -2
- package/dist/nodes/llms/N8nLlmTracing.js +1 -1
- package/dist/nodes/llms/N8nLlmTracing.js.map +1 -1
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js +3 -2
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js.map +1 -1
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js +5 -4
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js.map +1 -1
- package/dist/nodes/memory/MemoryManager/MemoryManager.node.js +5 -4
- package/dist/nodes/memory/MemoryManager/MemoryManager.node.js.map +1 -1
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js +3 -2
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js.map +1 -1
- package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.js +3 -2
- package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.js.map +1 -1
- package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js +6 -3
- package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js.map +1 -1
- package/dist/nodes/memory/MemoryXata/MemoryXata.node.js +2 -2
- package/dist/nodes/memory/MemoryXata/MemoryXata.node.js.map +1 -1
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.js +2 -2
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.js +6 -6
- package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js +3 -2
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js +2 -2
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js +6 -5
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js +6 -5
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js +4 -3
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js +1 -1
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js +3 -2
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js +3 -2
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js +3 -2
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js.map +1 -1
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js +3 -2
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js.map +1 -1
- package/dist/nodes/tools/ToolCode/ToolCode.node.js +5 -5
- package/dist/nodes/tools/ToolCode/ToolCode.node.js.map +1 -1
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js +2 -2
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js.map +1 -1
- package/dist/nodes/tools/ToolHttpRequest/utils.js +3 -3
- package/dist/nodes/tools/ToolHttpRequest/utils.js.map +1 -1
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.js +3 -2
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.js.map +1 -1
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js +7 -6
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js.map +1 -1
- package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.js +3 -2
- package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.js.map +1 -1
- package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.js +3 -2
- package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js +3 -3
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.js +3 -2
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js +2 -2
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.js +3 -2
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js +3 -3
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js.map +1 -1
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js +2 -1
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js +5 -5
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js +9 -8
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.js +6 -5
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.d.ts +16 -0
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.js +244 -0
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.js.map +1 -0
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/mongodb.dark.svg +3 -0
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/mongodb.svg +3 -0
- 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/VectorStorePineconeInsert/VectorStorePineconeInsert.node.d.ts +1 -1
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.js +8 -7
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.d.ts +1 -1
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.js +5 -4
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.js +2 -2
- package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.js +2 -2
- package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.d.ts +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.js +8 -7
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.d.ts +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.js +5 -4
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js +1 -1
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.js +7 -6
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js +4 -3
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.d.ts +7 -0
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.js +50 -0
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.js.map +1 -0
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.d.ts +32 -0
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.js +173 -0
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.js.map +1 -0
- package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.d.ts +16 -0
- package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.js +95 -0
- package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.js.map +1 -0
- package/dist/nodes/vector_store/shared/MemoryManager/config.d.ts +4 -0
- package/dist/nodes/vector_store/shared/MemoryManager/config.js +38 -0
- package/dist/nodes/vector_store/shared/MemoryManager/config.js.map +1 -0
- package/dist/nodes/vector_store/shared/MemoryManager/types.d.ts +39 -0
- package/dist/nodes/vector_store/shared/MemoryManager/types.js +3 -0
- package/dist/nodes/vector_store/shared/MemoryManager/types.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.d.ts +4 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js +45 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.d.ts +15 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js +226 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js +22 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js +35 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js +33 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js +42 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js +16 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js +39 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js.map +1 -0
- package/dist/nodes/vector_store/shared/{createVectorStoreNode.d.ts → createVectorStoreNode/types.d.ts} +3 -16
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js +3 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.d.ts +6 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js +20 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js.map +1 -0
- package/dist/nodes/vendors/OpenAi/actions/assistant/message.operation.js +1 -1
- package/dist/nodes/vendors/OpenAi/actions/assistant/message.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/actions/versionDescription.js +9 -8
- package/dist/nodes/vendors/OpenAi/actions/versionDescription.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/methods/listSearch.js +2 -1
- package/dist/nodes/vendors/OpenAi/methods/listSearch.js.map +1 -1
- package/dist/types/credentials.json +1 -0
- package/dist/types/nodes.json +17 -15
- package/dist/utils/N8nTool.js +2 -2
- package/dist/utils/N8nTool.js.map +1 -1
- package/dist/utils/helpers.d.ts +1 -0
- package/dist/utils/helpers.js +13 -1
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/logWrapper.d.ts +1 -2
- package/dist/utils/logWrapper.js +12 -12
- package/dist/utils/logWrapper.js.map +1 -1
- package/dist/utils/output_parsers/N8nOutputFixingParser.js +11 -5
- package/dist/utils/output_parsers/N8nOutputFixingParser.js.map +1 -1
- package/dist/utils/output_parsers/N8nOutputParser.d.ts +1 -1
- package/dist/utils/output_parsers/N8nOutputParser.js +6 -5
- package/dist/utils/output_parsers/N8nOutputParser.js.map +1 -1
- package/dist/utils/output_parsers/N8nStructuredOutputParser.js +5 -4
- package/dist/utils/output_parsers/N8nStructuredOutputParser.js.map +1 -1
- package/dist/utils/sharedFields.d.ts +2 -2
- package/dist/utils/sharedFields.js +9 -8
- package/dist/utils/sharedFields.js.map +1 -1
- package/package.json +10 -5
- package/dist/nodes/chains/ChainLLM/utils.d.ts +0 -5
- package/dist/nodes/chains/ChainLLM/utils.js +0 -14
- package/dist/nodes/chains/ChainLLM/utils.js.map +0 -1
- package/dist/nodes/vector_store/shared/MemoryVectorStoreManager.d.ts +0 -12
- package/dist/nodes/vector_store/shared/MemoryVectorStoreManager.js +0 -40
- package/dist/nodes/vector_store/shared/MemoryVectorStoreManager.js.map +0 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode.js +0 -369
- package/dist/nodes/vector_store/shared/createVectorStoreNode.js.map +0 -1
- package/dist/nodes/vector_store/shared/methods/listSearch.js.map +0 -1
- /package/dist/nodes/vector_store/shared/{methods → createVectorStoreNode/methods}/listSearch.d.ts +0 -0
- /package/dist/nodes/vector_store/shared/{methods → createVectorStoreNode/methods}/listSearch.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.versionDescription = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const sharedFields_1 = require("../../../../utils/sharedFields");
|
|
5
6
|
exports.versionDescription = {
|
|
6
7
|
displayName: 'Call n8n Workflow Tool',
|
|
@@ -12,10 +13,10 @@ exports.versionDescription = {
|
|
|
12
13
|
},
|
|
13
14
|
version: [2, 2.1],
|
|
14
15
|
inputs: [],
|
|
15
|
-
outputs: [
|
|
16
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.AiTool],
|
|
16
17
|
outputNames: ['Tool'],
|
|
17
18
|
properties: [
|
|
18
|
-
(0, sharedFields_1.getConnectionHintNoticeField)([
|
|
19
|
+
(0, sharedFields_1.getConnectionHintNoticeField)([n8n_workflow_1.NodeConnectionTypes.AiAgent]),
|
|
19
20
|
{
|
|
20
21
|
displayName: 'See an example of a workflow to suggest meeting slots using AI <a href="/templates/1953" target="_blank">here</a>.',
|
|
21
22
|
name: 'noticeTemplateExample',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionDescription.js","sourceRoot":"","sources":["../../../../../nodes/tools/ToolWorkflow/v2/versionDescription.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"versionDescription.js","sourceRoot":"","sources":["../../../../../nodes/tools/ToolWorkflow/v2/versionDescription.ts"],"names":[],"mappings":";;;AAEA,+CAA8E;AAE9E,iEAA8E;AAEjE,QAAA,kBAAkB,GAAyB;IACvD,WAAW,EAAE,wBAAwB;IACrC,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,CAAC,WAAW,CAAC;IACpB,WAAW,EAAE,kFAAkF;IAC/F,QAAQ,EAAE;QACT,IAAI,EAAE,wBAAwB;KAC9B;IACD,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,CAAC,kCAAmB,CAAC,MAAM,CAAC;IACrC,WAAW,EAAE,CAAC,MAAM,CAAC;IACrB,UAAU,EAAE;QACX,IAAA,2CAA4B,EAAC,CAAC,kCAAmB,CAAC,OAAO,CAAC,CAAC;QAC3D;YACC,WAAW,EACV,oHAAoH;YACrH,IAAI,EAAE,uBAAuB;YAC7B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AK,EAAE,IAAI;aACX;YACD,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE;gBACZ,oBAAoB,EAAE,CAAC,kBAAkB,CAAC;gBAC1C,cAAc,EAAE;oBACf,yBAAyB,EAAE,uBAAuB;oBAClD,WAAW,EAAE,iBAAiB;oBAC9B,IAAI,EAAE,KAAK;oBACX,UAAU,EAAE;wBACX,QAAQ,EAAE,gBAAgB;wBAC1B,MAAM,EAAE,iBAAiB;qBACzB;oBACD,YAAY,EAAE,IAAI;oBAClB,aAAa,EAAE,KAAK;oBACpB,cAAc,EAAE,KAAK;iBACrB;aACD;YACD,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,MAAM,EAAE,CAAC,UAAU,CAAC;iBACpB;gBACD,IAAI,EAAE;oBACL,UAAU,EAAE,CAAC,EAAE,CAAC;iBAChB;aACD;SACD;QAID;YACC,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE;gBACZ,IAAI,EAAE,EAAE;aACR;YACD,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,MAAM,EAAE,CAAC,WAAW,CAAC;iBACrB;aACD;YACD,OAAO,EAAE,oBAAoB;YAC7B,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,mCAAmC;SAChD;KACD;CACD,CAAC"}
|
|
@@ -59,12 +59,12 @@ class ChatTrigger extends n8n_workflow_1.Node {
|
|
|
59
59
|
{
|
|
60
60
|
displayName: 'Memory',
|
|
61
61
|
maxConnections: 1,
|
|
62
|
-
type: '${
|
|
62
|
+
type: '${n8n_workflow_1.NodeConnectionTypes.AiMemory}',
|
|
63
63
|
required: true,
|
|
64
64
|
}
|
|
65
65
|
];
|
|
66
66
|
})() }}`,
|
|
67
|
-
outputs: [
|
|
67
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
68
68
|
credentials: [
|
|
69
69
|
{
|
|
70
70
|
name: 'httpBasicAuth',
|
|
@@ -496,7 +496,7 @@ ${constants_1.cssVariables}
|
|
|
496
496
|
}
|
|
497
497
|
if (bodyData.action === 'loadPreviousSession') {
|
|
498
498
|
if (options?.loadPreviousSession === 'memory') {
|
|
499
|
-
const memory = (await ctx.getInputConnectionData(
|
|
499
|
+
const memory = (await ctx.getInputConnectionData(n8n_workflow_1.NodeConnectionTypes.AiMemory, 0));
|
|
500
500
|
const messages = ((await memory?.chatHistory.getMessages()) ?? [])
|
|
501
501
|
.filter((message) => !message?.additional_kwargs?.hideFromUI)
|
|
502
502
|
.map((message) => message?.toJSON());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatTrigger.node.js","sourceRoot":"","sources":["../../../../nodes/trigger/ChatTrigger/ChatTrigger.node.ts"],"names":[],"mappings":";;;AACA,mCAA8B;AAC9B,+CAAwD;AAYxD,2CAA2C;AAC3C,yDAAkD;AAClD,2CAAyC;AAGzC,MAAM,4BAA4B,GAAG,MAAM,CAAC;AAC5C,MAAM,sBAAsB,GAAoB;IAC/C,WAAW,EAAE,oBAAoB;IACjC,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,2CAA2C;CACxD,CAAC;AACF,MAAM,yBAAyB,GAAoB;IAClD,WAAW,EAAE,yBAAyB;IACtC,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,uCAAuC;IACpD,WAAW,EACV,2LAA2L;CAC5L,CAAC;AAEF,MAAa,WAAY,SAAQ,mBAAI;IAArC;;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,OAAO;YAClB,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC;YACjB,WAAW,EAAE,8DAA8D;YAC3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AAC;IACH,CAAC;CACD;AAziBD,kCAyiBC"}
|
|
1
|
+
{"version":3,"file":"ChatTrigger.node.js","sourceRoot":"","sources":["../../../../nodes/trigger/ChatTrigger/ChatTrigger.node.ts"],"names":[],"mappings":";;;AACA,mCAA8B;AAC9B,+CAAyD;AAYzD,2CAA2C;AAC3C,yDAAkD;AAClD,2CAAyC;AAGzC,MAAM,4BAA4B,GAAG,MAAM,CAAC;AAC5C,MAAM,sBAAsB,GAAoB;IAC/C,WAAW,EAAE,oBAAoB;IACjC,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,2CAA2C;CACxD,CAAC;AACF,MAAM,yBAAyB,GAAoB;IAClD,WAAW,EAAE,yBAAyB;IACtC,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,GAAG;IACZ,WAAW,EAAE,uCAAuC;IACpD,WAAW,EACV,2LAA2L;CAC5L,CAAC;AAEF,MAAa,WAAY,SAAQ,mBAAI;IAArC;;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,aAAa;YACnB,SAAS,EAAE,OAAO;YAClB,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC;YACjB,WAAW,EAAE,8DAA8D;YAC3E,QAAQ,EAAE;gBACT,IAAI,EAAE,4BAA4B;aAClC;YACD,KAAK,EAAE;gBACN,UAAU,EAAE,CAAC,YAAY,CAAC;gBAC1B,SAAS,EAAE;oBACV,oBAAoB,EAAE;wBACrB;4BACC,GAAG,EAAE,sFAAsF;yBAC3F;qBACD;iBACD;aACD;YACD,QAAQ,EAAE,CAAC;YACX,MAAM,EAAE;;;;;;;;;;;;cAYI,kCAAmB,CAAC,QAAQ;;;;WAI/B;YACT,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAA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WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;qBAChE,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,iBAAiB,EAAE,UAAU,CAAC;qBAC5D,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;gBACtC,OAAO;oBACN,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACnC,CAAC;YACH,CAAC;iBAAM,IAAI,OAAO,EAAE,mBAAmB,KAAK,cAAc,EAAE,CAAC;gBAE5D,OAAO;oBACN,eAAe,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;iBAC7B,CAAC;YACH,CAAC;QACF,CAAC;QAED,IAAI,UAAgC,CAAC;QACrC,MAAM,eAAe,GAAgB,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;QACrD,IAAI,GAAG,CAAC,WAAW,KAAK,qBAAqB,EAAE,CAAC;YAC/C,UAAU,GAAG,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;YAC9C,OAAO;gBACN,eAAe;gBACf,YAAY,EAAE,CAAC,UAAU,CAAC;aAC1B,CAAC;QACH,CAAC;aAAM,CAAC;YACP,UAAU,GAAG,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;QACnC,CAAC;QAED,OAAO;YACN,eAAe;YACf,YAAY,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;SACvD,CAAC;IACH,CAAC;CACD;AAziBD,kCAyiBC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ManualChatTrigger = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
class ManualChatTrigger {
|
|
5
6
|
constructor() {
|
|
6
7
|
this.description = {
|
|
@@ -31,7 +32,7 @@ class ManualChatTrigger {
|
|
|
31
32
|
},
|
|
32
33
|
},
|
|
33
34
|
inputs: [],
|
|
34
|
-
outputs: [
|
|
35
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
35
36
|
properties: [
|
|
36
37
|
{
|
|
37
38
|
displayName: 'This node is where a manual chat workflow execution starts. To make one, go back to the canvas and click ‘Chat’',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManualChatTrigger.node.js","sourceRoot":"","sources":["../../../../nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ManualChatTrigger.node.js","sourceRoot":"","sources":["../../../../nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AAEtB,MAAa,iBAAiB;IAA9B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC;YACjB,WAAW,EAAE,0CAA0C;YACvD,uBAAuB,EAAE,EAAE;YAC3B,QAAQ,EAAE,CAAC;YACX,MAAM,EAAE,IAAI;YACZ,QAAQ,EAAE;gBACT,IAAI,EAAE,4BAA4B;gBAClC,KAAK,EAAE,SAAS;aAChB;YACD,KAAK,EAAE;gBACN,UAAU,EAAE,CAAC,YAAY,CAAC;gBAC1B,SAAS,EAAE;oBACV,oBAAoB,EAAE;wBACrB;4BACC,GAAG,EAAE,sFAAsF;yBAC3F;qBACD;iBACD;gBACD,aAAa,EAAE;oBACd,YAAY,EAAE,CAAC,qBAAqB,CAAC;iBACrC;aACD;YACD,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,UAAU,EAAE;gBACX;oBACC,WAAW,EACV,iHAAiH;oBAClH,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;iBACX;gBACD;oBAEC,WAAW,EAAE,2BAA2B;oBACxC,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;wBACZ,YAAY,EAAE;4BACb,MAAM,EAAE,UAAU;yBAClB;qBACD;oBACD,OAAO,EAAE,EAAE;iBACX;aACD;SACD,CAAC;IAWH,CAAC;IATA,KAAK,CAAC,OAAO;QACZ,MAAM,qBAAqB,GAAG,KAAK,IAAI,EAAE;YACxC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACjD,CAAC,CAAC;QAEF,OAAO;YACN,qBAAqB;SACrB,CAAC;IACH,CAAC;CACD;AA9DD,8CA8DC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VectorStoreInMemory = void 0;
|
|
4
|
-
const createVectorStoreNode_1 = require("../shared/createVectorStoreNode");
|
|
5
|
-
const MemoryVectorStoreManager_1 = require("../shared/MemoryVectorStoreManager");
|
|
4
|
+
const createVectorStoreNode_1 = require("../shared/createVectorStoreNode/createVectorStoreNode");
|
|
5
|
+
const MemoryVectorStoreManager_1 = require("../shared/MemoryManager/MemoryVectorStoreManager");
|
|
6
6
|
const insertFields = [
|
|
7
7
|
{
|
|
8
|
-
displayName: '
|
|
8
|
+
displayName: '<strong>For experimental use only</strong>: Data is stored in memory and will be lost if n8n restarts. Data may also be cleared if available memory gets low. <a href="https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.vectorstoreinmemory/">More info</a>',
|
|
9
9
|
name: 'notice',
|
|
10
10
|
type: 'notice',
|
|
11
11
|
default: '',
|
|
@@ -42,14 +42,14 @@ class VectorStoreInMemory extends (0, createVectorStoreNode_1.createVectorStoreN
|
|
|
42
42
|
async getVectorStoreClient(context, _filter, embeddings, itemIndex) {
|
|
43
43
|
const workflowId = context.getWorkflow().id;
|
|
44
44
|
const memoryKey = context.getNodeParameter('memoryKey', itemIndex);
|
|
45
|
-
const vectorStoreSingleton = MemoryVectorStoreManager_1.MemoryVectorStoreManager.getInstance(embeddings);
|
|
45
|
+
const vectorStoreSingleton = MemoryVectorStoreManager_1.MemoryVectorStoreManager.getInstance(embeddings, context.logger);
|
|
46
46
|
return await vectorStoreSingleton.getVectorStore(`${workflowId}__${memoryKey}`);
|
|
47
47
|
},
|
|
48
48
|
async populateVectorStore(context, embeddings, documents, itemIndex) {
|
|
49
49
|
const memoryKey = context.getNodeParameter('memoryKey', itemIndex);
|
|
50
50
|
const clearStore = context.getNodeParameter('clearStore', itemIndex);
|
|
51
51
|
const workflowId = context.getWorkflow().id;
|
|
52
|
-
const vectorStoreInstance = MemoryVectorStoreManager_1.MemoryVectorStoreManager.getInstance(embeddings);
|
|
52
|
+
const vectorStoreInstance = MemoryVectorStoreManager_1.MemoryVectorStoreManager.getInstance(embeddings, context.logger);
|
|
53
53
|
await vectorStoreInstance.addDocuments(`${workflowId}__${memoryKey}`, documents, clearStore);
|
|
54
54
|
},
|
|
55
55
|
}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorStoreInMemory.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"VectorStoreInMemory.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.ts"],"names":[],"mappings":";;;AAGA,iGAA8F;AAC9F,+FAA4F;AAE5F,MAAM,YAAY,GAAsB;IACvC;QACC,WAAW,EACV,kSAAkS;QACnS,IAAI,EAAE,QAAQ;QACd,IAAI,E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gBAAgB,CAAC,YAAY,EAAE,SAAS,CAAY,CAAC;QAChF,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC;QAC5C,MAAM,mBAAmB,GAAG,mDAAwB,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;QAE7F,MAAM,mBAAmB,CAAC,YAAY,CAAC,GAAG,UAAU,KAAK,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IAC9F,CAAC;CACD,CAAC;CAAG;AAvCL,kDAuCK"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VectorStoreInMemoryInsert = void 0;
|
|
4
|
-
const
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const MemoryVectorStoreManager_1 = require("../shared/MemoryManager/MemoryVectorStoreManager");
|
|
5
6
|
const processDocuments_1 = require("../shared/processDocuments");
|
|
6
7
|
class VectorStoreInMemoryInsert {
|
|
7
8
|
constructor() {
|
|
@@ -30,21 +31,21 @@ class VectorStoreInMemoryInsert {
|
|
|
30
31
|
},
|
|
31
32
|
},
|
|
32
33
|
inputs: [
|
|
33
|
-
|
|
34
|
+
n8n_workflow_1.NodeConnectionTypes.Main,
|
|
34
35
|
{
|
|
35
36
|
displayName: 'Document',
|
|
36
37
|
maxConnections: 1,
|
|
37
|
-
type:
|
|
38
|
+
type: n8n_workflow_1.NodeConnectionTypes.AiDocument,
|
|
38
39
|
required: true,
|
|
39
40
|
},
|
|
40
41
|
{
|
|
41
42
|
displayName: 'Embedding',
|
|
42
43
|
maxConnections: 1,
|
|
43
|
-
type:
|
|
44
|
+
type: n8n_workflow_1.NodeConnectionTypes.AiEmbedding,
|
|
44
45
|
required: true,
|
|
45
46
|
},
|
|
46
47
|
],
|
|
47
|
-
outputs: [
|
|
48
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
48
49
|
properties: [
|
|
49
50
|
{
|
|
50
51
|
displayName: 'The embbded data are stored in the server memory, so they will be lost when the server is restarted. Additionally, if the amount of data is too large, it may cause the server to crash due to insufficient memory.',
|
|
@@ -71,13 +72,13 @@ class VectorStoreInMemoryInsert {
|
|
|
71
72
|
}
|
|
72
73
|
async execute() {
|
|
73
74
|
const items = this.getInputData(0);
|
|
74
|
-
const embeddings = (await this.getInputConnectionData(
|
|
75
|
+
const embeddings = (await this.getInputConnectionData(n8n_workflow_1.NodeConnectionTypes.AiEmbedding, 0));
|
|
75
76
|
const memoryKey = this.getNodeParameter('memoryKey', 0);
|
|
76
77
|
const clearStore = this.getNodeParameter('clearStore', 0);
|
|
77
|
-
const documentInput = (await this.getInputConnectionData(
|
|
78
|
+
const documentInput = (await this.getInputConnectionData(n8n_workflow_1.NodeConnectionTypes.AiDocument, 0));
|
|
78
79
|
const { processedDocuments, serializedDocuments } = await (0, processDocuments_1.processDocuments)(documentInput, items);
|
|
79
80
|
const workflowId = this.getWorkflow().id;
|
|
80
|
-
const vectorStoreInstance = MemoryVectorStoreManager_1.MemoryVectorStoreManager.getInstance(embeddings);
|
|
81
|
+
const vectorStoreInstance = MemoryVectorStoreManager_1.MemoryVectorStoreManager.getInstance(embeddings, this.logger);
|
|
81
82
|
await vectorStoreInstance.addDocuments(`${workflowId}__${memoryKey}`, processedDocuments, clearStore);
|
|
82
83
|
return [serializedDocuments];
|
|
83
84
|
}
|
package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorStoreInMemoryInsert.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"VectorStoreInMemoryInsert.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStore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
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const logWrapper_1 = require("../../../utils/logWrapper");
|
|
5
|
-
const MemoryVectorStoreManager_1 = require("../shared/MemoryVectorStoreManager");
|
|
6
|
+
const MemoryVectorStoreManager_1 = require("../shared/MemoryManager/MemoryVectorStoreManager");
|
|
6
7
|
class VectorStoreInMemoryLoad {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.description = {
|
|
@@ -33,11 +34,11 @@ class VectorStoreInMemoryLoad {
|
|
|
33
34
|
{
|
|
34
35
|
displayName: 'Embedding',
|
|
35
36
|
maxConnections: 1,
|
|
36
|
-
type:
|
|
37
|
+
type: n8n_workflow_1.NodeConnectionTypes.AiEmbedding,
|
|
37
38
|
required: true,
|
|
38
39
|
},
|
|
39
40
|
],
|
|
40
|
-
outputs: [
|
|
41
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.AiVectorStore],
|
|
41
42
|
outputNames: ['Vector Store'],
|
|
42
43
|
properties: [
|
|
43
44
|
{
|
|
@@ -51,10 +52,10 @@ class VectorStoreInMemoryLoad {
|
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
async supplyData(itemIndex) {
|
|
54
|
-
const embeddings = (await this.getInputConnectionData(
|
|
55
|
+
const embeddings = (await this.getInputConnectionData(n8n_workflow_1.NodeConnectionTypes.AiEmbedding, itemIndex));
|
|
55
56
|
const workflowId = this.getWorkflow().id;
|
|
56
57
|
const memoryKey = this.getNodeParameter('memoryKey', 0);
|
|
57
|
-
const vectorStoreSingleton = MemoryVectorStoreManager_1.MemoryVectorStoreManager.getInstance(embeddings);
|
|
58
|
+
const vectorStoreSingleton = MemoryVectorStoreManager_1.MemoryVectorStoreManager.getInstance(embeddings, this.logger);
|
|
58
59
|
const vectorStoreInstance = await vectorStoreSingleton.getVectorStore(`${workflowId}__${memoryKey}`);
|
|
59
60
|
return {
|
|
60
61
|
response: (0, logWrapper_1.logWrapper)(vectorStoreInstance, this),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorStoreInMemoryLoad.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"VectorStoreInMemoryLoad.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.ts"],"names":[],"mappings":";;;AAEA,+CAMsB;AAEtB,kDAA+C;AAE/C,+FAA4F;AAG5F,MAAa,uBAAuB;IAApC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,yBAAyB;YAC/B,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE;gBACT,IAAI,EAAE,6BAA6B;aACnC;YACD,KAAK,EAAE;gBACN,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,aAAa,EAAE;oBACd,EAAE,EAAE,CAAC,eAAe,CAAC;iBACrB;gBACD,SAAS,EAAE;oBACV,oBAAoB,EAAE;wBACrB;4BACC,GAAG,EAAE,4GAA4G;yBACjH;qBACD;iBACD;aACD;YAED,MAAM,EAAE;gBACP;oBACC,WAAW,EAAE,WAAW;oBACxB,cAAc,EAAE,CAAC;oBACjB,IAAI,EAAE,kCAAmB,CAAC,WAAW;oBACrC,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,OAAO,EAAE,CAAC,kCAAmB,CAAC,aAAa,CAAC;YAC5C,WAAW,EAAE,CAAC,cAAc,CAAC;YAC7B,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,YAAY;oBACzB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,kBAAkB;oBAC3B,WAAW,EACV,oIAAoI;iBACrI;aACD;SACD,CAAC;IAoBH,CAAC;IAlBA,KAAK,CAAC,UAAU,CAA6B,SAAiB;QAC7D,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,CAAC,sBAAsB,CACpD,kCAAmB,CAAC,WAAW,EAC/B,SAAS,CACT,CAAe,CAAC;QAEjB,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC;QACzC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;QAElE,MAAM,oBAAoB,GAAG,mDAAwB,CAAC,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC3F,MAAM,mBAAmB,GAAG,MAAM,oBAAoB,CAAC,cAAc,CACpE,GAAG,UAAU,KAAK,SAAS,EAAE,CAC7B,CAAC;QAEF,OAAO;YACN,QAAQ,EAAE,IAAA,uBAAU,EAAC,mBAAmB,EAAE,IAAI,CAAC;SAC/C,CAAC;IACH,CAAC;CACD;AAlED,0DAkEC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ILoadOptionsFunctions } from 'n8n-workflow';
|
|
2
|
+
declare const VectorStoreMongoDBAtlas_base: {
|
|
3
|
+
new (): {
|
|
4
|
+
description: import("n8n-workflow").INodeTypeDescription;
|
|
5
|
+
methods: {
|
|
6
|
+
listSearch?: {
|
|
7
|
+
[key: string]: (this: ILoadOptionsFunctions, filter?: string, paginationToken?: string) => Promise<import("n8n-workflow").INodeListSearchResult>;
|
|
8
|
+
};
|
|
9
|
+
} | undefined;
|
|
10
|
+
execute(this: import("n8n-workflow").IExecuteFunctions): Promise<import("n8n-workflow").INodeExecutionData[][]>;
|
|
11
|
+
supplyData(this: import("n8n-workflow").ISupplyDataFunctions, itemIndex: number): Promise<import("n8n-workflow").SupplyData>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare class VectorStoreMongoDBAtlas extends VectorStoreMongoDBAtlas_base {
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VectorStoreMongoDBAtlas = void 0;
|
|
4
|
+
const mongodb_1 = require("@langchain/mongodb");
|
|
5
|
+
const mongodb_2 = require("mongodb");
|
|
6
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
7
|
+
const sharedFields_1 = require("../../../utils/sharedFields");
|
|
8
|
+
const createVectorStoreNode_1 = require("../shared/createVectorStoreNode/createVectorStoreNode");
|
|
9
|
+
const mongoCollectionRLC = {
|
|
10
|
+
displayName: 'MongoDB Collection',
|
|
11
|
+
name: 'mongoCollection',
|
|
12
|
+
type: 'resourceLocator',
|
|
13
|
+
default: { mode: 'list', value: '' },
|
|
14
|
+
required: true,
|
|
15
|
+
modes: [
|
|
16
|
+
{
|
|
17
|
+
displayName: 'From List',
|
|
18
|
+
name: 'list',
|
|
19
|
+
type: 'list',
|
|
20
|
+
typeOptions: {
|
|
21
|
+
searchListMethod: 'mongoCollectionSearch',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Name',
|
|
26
|
+
name: 'name',
|
|
27
|
+
type: 'string',
|
|
28
|
+
placeholder: 'e.g. my_collection',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
const vectorIndexName = {
|
|
33
|
+
displayName: 'Vector Index Name',
|
|
34
|
+
name: 'vectorIndexName',
|
|
35
|
+
type: 'string',
|
|
36
|
+
default: '',
|
|
37
|
+
description: 'The name of the vector index',
|
|
38
|
+
required: true,
|
|
39
|
+
};
|
|
40
|
+
const embeddingField = {
|
|
41
|
+
displayName: 'Embedding',
|
|
42
|
+
name: 'embedding',
|
|
43
|
+
type: 'string',
|
|
44
|
+
default: 'embedding',
|
|
45
|
+
description: 'The field with the embedding array',
|
|
46
|
+
required: true,
|
|
47
|
+
};
|
|
48
|
+
const metadataField = {
|
|
49
|
+
displayName: 'Metadata Field',
|
|
50
|
+
name: 'metadata_field',
|
|
51
|
+
type: 'string',
|
|
52
|
+
default: 'text',
|
|
53
|
+
description: 'The text field of the raw data',
|
|
54
|
+
required: true,
|
|
55
|
+
};
|
|
56
|
+
const sharedFields = [
|
|
57
|
+
mongoCollectionRLC,
|
|
58
|
+
embeddingField,
|
|
59
|
+
metadataField,
|
|
60
|
+
vectorIndexName,
|
|
61
|
+
];
|
|
62
|
+
const mongoNamespaceField = {
|
|
63
|
+
displayName: 'Namespace',
|
|
64
|
+
name: 'namespace',
|
|
65
|
+
type: 'string',
|
|
66
|
+
description: 'Logical partition for documents. Uses metadata.namespace field for filtering.',
|
|
67
|
+
default: '',
|
|
68
|
+
};
|
|
69
|
+
const retrieveFields = [
|
|
70
|
+
{
|
|
71
|
+
displayName: 'Options',
|
|
72
|
+
name: 'options',
|
|
73
|
+
type: 'collection',
|
|
74
|
+
placeholder: 'Add Option',
|
|
75
|
+
default: {},
|
|
76
|
+
options: [mongoNamespaceField, sharedFields_1.metadataFilterField],
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
const insertFields = [
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Options',
|
|
82
|
+
name: 'options',
|
|
83
|
+
type: 'collection',
|
|
84
|
+
placeholder: 'Add Option',
|
|
85
|
+
default: {},
|
|
86
|
+
options: [
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Clear Namespace',
|
|
89
|
+
name: 'clearNamespace',
|
|
90
|
+
type: 'boolean',
|
|
91
|
+
default: false,
|
|
92
|
+
description: 'Whether to clear documents in the namespace before inserting new data',
|
|
93
|
+
},
|
|
94
|
+
mongoNamespaceField,
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
];
|
|
98
|
+
let mongoClient = null;
|
|
99
|
+
async function getMongoClient(context) {
|
|
100
|
+
if (!mongoClient) {
|
|
101
|
+
const credentials = await context.getCredentials('mongoDb');
|
|
102
|
+
mongoClient = new mongodb_2.MongoClient(credentials.connectionString, {
|
|
103
|
+
appName: 'devrel.integration.n8n_vector_integ',
|
|
104
|
+
});
|
|
105
|
+
await mongoClient.connect();
|
|
106
|
+
}
|
|
107
|
+
return mongoClient;
|
|
108
|
+
}
|
|
109
|
+
async function mongoClientAndDatabase(context) {
|
|
110
|
+
const client = await getMongoClient(context);
|
|
111
|
+
const credentials = await context.getCredentials('mongoDb');
|
|
112
|
+
const db = client.db(credentials.database);
|
|
113
|
+
return { client, db };
|
|
114
|
+
}
|
|
115
|
+
async function mongoCollectionSearch() {
|
|
116
|
+
const { db } = await mongoClientAndDatabase(this);
|
|
117
|
+
try {
|
|
118
|
+
const collections = await db.listCollections().toArray();
|
|
119
|
+
const results = collections.map((collection) => ({
|
|
120
|
+
name: collection.name,
|
|
121
|
+
value: collection.name,
|
|
122
|
+
}));
|
|
123
|
+
return { results };
|
|
124
|
+
}
|
|
125
|
+
catch (error) {
|
|
126
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Error: ${error.message}`);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
class VectorStoreMongoDBAtlas extends (0, createVectorStoreNode_1.createVectorStoreNode)({
|
|
130
|
+
meta: {
|
|
131
|
+
displayName: 'MongoDB Atlas Vector Store',
|
|
132
|
+
name: 'vectorStoreMongoDBAtlas',
|
|
133
|
+
description: 'Work with your data in MongoDB Atlas Vector Store',
|
|
134
|
+
icon: { light: 'file:mongodb.svg', dark: 'file:mongodb.dark.svg' },
|
|
135
|
+
docsUrl: 'https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.vectorstoremongodbatlas/',
|
|
136
|
+
credentials: [
|
|
137
|
+
{
|
|
138
|
+
name: 'mongoDb',
|
|
139
|
+
required: true,
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
operationModes: ['load', 'insert', 'retrieve', 'update', 'retrieve-as-tool'],
|
|
143
|
+
},
|
|
144
|
+
methods: { listSearch: { mongoCollectionSearch } },
|
|
145
|
+
retrieveFields,
|
|
146
|
+
loadFields: retrieveFields,
|
|
147
|
+
insertFields,
|
|
148
|
+
sharedFields,
|
|
149
|
+
async getVectorStoreClient(context, _filter, embeddings, itemIndex) {
|
|
150
|
+
try {
|
|
151
|
+
const { db } = await mongoClientAndDatabase(context);
|
|
152
|
+
try {
|
|
153
|
+
const collectionName = context.getNodeParameter('mongoCollection', itemIndex, '', {
|
|
154
|
+
extractValue: true,
|
|
155
|
+
});
|
|
156
|
+
const mongoVectorIndexName = context.getNodeParameter('vectorIndexName', itemIndex, '', {
|
|
157
|
+
extractValue: true,
|
|
158
|
+
});
|
|
159
|
+
const embeddingFieldName = context.getNodeParameter('embedding', itemIndex, '', {
|
|
160
|
+
extractValue: true,
|
|
161
|
+
});
|
|
162
|
+
const metadataFieldName = context.getNodeParameter('metadata_field', itemIndex, '', {
|
|
163
|
+
extractValue: true,
|
|
164
|
+
});
|
|
165
|
+
const collection = db.collection(collectionName);
|
|
166
|
+
const indexes = await collection.listSearchIndexes().toArray();
|
|
167
|
+
const indexExists = indexes.some((index) => index.name === mongoVectorIndexName);
|
|
168
|
+
if (!indexExists) {
|
|
169
|
+
throw new n8n_workflow_1.NodeOperationError(context.getNode(), `Index ${mongoVectorIndexName} not found`, {
|
|
170
|
+
itemIndex,
|
|
171
|
+
description: 'Please check that the index exists in your collection',
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return new mongodb_1.MongoDBAtlasVectorSearch(embeddings, {
|
|
175
|
+
collection,
|
|
176
|
+
indexName: mongoVectorIndexName,
|
|
177
|
+
textKey: metadataFieldName,
|
|
178
|
+
embeddingKey: embeddingFieldName,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
catch (error) {
|
|
182
|
+
throw new n8n_workflow_1.NodeOperationError(context.getNode(), `Error: ${error.message}`, {
|
|
183
|
+
itemIndex,
|
|
184
|
+
description: 'Please check your MongoDB Atlas connection details',
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
finally {
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
catch (error) {
|
|
191
|
+
throw new n8n_workflow_1.NodeOperationError(context.getNode(), `Error: ${error.message}`, {
|
|
192
|
+
itemIndex,
|
|
193
|
+
description: 'Please check your MongoDB Atlas connection details',
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
async populateVectorStore(context, embeddings, documents, itemIndex) {
|
|
198
|
+
try {
|
|
199
|
+
const { db } = await mongoClientAndDatabase(context);
|
|
200
|
+
try {
|
|
201
|
+
const mongoCollectionName = context.getNodeParameter('mongoCollection', itemIndex, '', {
|
|
202
|
+
extractValue: true,
|
|
203
|
+
});
|
|
204
|
+
const embeddingFieldName = context.getNodeParameter('embedding', itemIndex, '', {
|
|
205
|
+
extractValue: true,
|
|
206
|
+
});
|
|
207
|
+
const metadataFieldName = context.getNodeParameter('metadata_field', itemIndex, '', {
|
|
208
|
+
extractValue: true,
|
|
209
|
+
});
|
|
210
|
+
const mongoDBAtlasVectorIndex = context.getNodeParameter('vectorIndexName', itemIndex, '', {
|
|
211
|
+
extractValue: true,
|
|
212
|
+
});
|
|
213
|
+
const collections = await db.listCollections({ name: mongoCollectionName }).toArray();
|
|
214
|
+
if (collections.length === 0) {
|
|
215
|
+
await db.createCollection(mongoCollectionName);
|
|
216
|
+
}
|
|
217
|
+
const collection = db.collection(mongoCollectionName);
|
|
218
|
+
await mongodb_1.MongoDBAtlasVectorSearch.fromDocuments(documents, embeddings, {
|
|
219
|
+
collection,
|
|
220
|
+
indexName: mongoDBAtlasVectorIndex,
|
|
221
|
+
textKey: metadataFieldName,
|
|
222
|
+
embeddingKey: embeddingFieldName,
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
catch (error) {
|
|
226
|
+
throw new n8n_workflow_1.NodeOperationError(context.getNode(), `Error: ${error.message}`, {
|
|
227
|
+
itemIndex,
|
|
228
|
+
description: 'Please check your MongoDB Atlas connection details',
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
finally {
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
catch (error) {
|
|
235
|
+
throw new n8n_workflow_1.NodeOperationError(context.getNode(), `Error: ${error.message}`, {
|
|
236
|
+
itemIndex,
|
|
237
|
+
description: 'Please check your MongoDB Atlas connection details',
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
}) {
|
|
242
|
+
}
|
|
243
|
+
exports.VectorStoreMongoDBAtlas = VectorStoreMongoDBAtlas;
|
|
244
|
+
//# sourceMappingURL=VectorStoreMongoDBAtlas.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VectorStoreMongoDBAtlas.node.js","sourceRoot":"","sources":["../../../../nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.ts"],"names":[],"mappings":";;;AAAA,gDAA8D;AAC9D,qCAAsC;AACtC,+CAAoG;AAEpG,sDAA0D;AAE1D,iGAA8F;AAE9F,MAAM,kBAAkB,GAAoB;IAC3C,WAAW,EAAE,oBAAoB;IACjC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACpC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACN;YACC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE;gBACZ,gBAAgB,EAAE,uBAAuB;aACzC;SACD;QACD;YACC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oBAAoB;SACjC;KACD;CACD,CAAC;AAEF,MAAM,eAAe,GAAoB;IACxC,WAAW,EAAE,mBAAmB;IAChC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,QAAQ;IACd,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OAAO,KAAK,EAAE,CAAC;gBAChB,MAAM,IAAI,iCAAkB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,UAAU,KAAK,CAAC,OAAO,EAAE,EAAE;oBAC1E,SAAS;oBACT,WAAW,EAAE,oDAAoD;iBACjE,CAAC,CAAC;YACJ,CAAC;oBAAS,CAAC;YAEX,CAAC;QACF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,MAAM,IAAI,iCAAkB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,UAAU,KAAK,CAAC,OAAO,EAAE,EAAE;gBAC1E,SAAS;gBACT,WAAW,EAAE,oDAAoD;aACjE,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;CACD,CAAC;CAAG;AA9HL,0DA8HK"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="120" height="258" viewBox="0 0 120 258" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M83.0089 28.7559C72.1328 15.9086 62.7673 2.86053 60.8539 0.150554C60.6525 -0.0501848 60.3503 -0.0501848 60.1489 0.150554C58.2355 2.86053 48.8699 15.9086 37.9938 28.7559C-55.3594 147.292 52.6968 227.287 52.6968 227.287L53.6031 227.889C54.4087 240.235 56.4228 258 56.4228 258H60.451H64.4792C64.4792 258 66.4934 240.335 67.299 227.889L68.2052 227.187C68.306 227.187 176.362 147.292 83.0089 28.7559ZM60.451 225.48C60.451 225.48 55.6172 221.365 54.3081 219.257V219.057L60.1489 89.9813C60.1489 89.5798 60.7532 89.5798 60.7532 89.9813L66.594 219.057V219.257C65.2848 221.365 60.451 225.48 60.451 225.48Z" fill="white"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="120" height="258" viewBox="0 0 120 258" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M83.0089 28.7559C72.1328 15.9086 62.7673 2.86053 60.8539 0.150554C60.6525 -0.0501848 60.3503 -0.0501848 60.1489 0.150554C58.2355 2.86053 48.8699 15.9086 37.9938 28.7559C-55.3594 147.292 52.6968 227.287 52.6968 227.287L53.6031 227.889C54.4087 240.235 56.4228 258 56.4228 258H60.451H64.4792C64.4792 258 66.4934 240.335 67.299 227.889L68.2052 227.187C68.306 227.187 176.362 147.292 83.0089 28.7559ZM60.451 225.48C60.451 225.48 55.6172 221.365 54.3081 219.257V219.057L60.1489 89.9813C60.1489 89.5798 60.7532 89.5798 60.7532 89.9813L66.594 219.057V219.257C65.2848 221.365 60.451 225.48 60.451 225.48Z" fill="#00684A"/>
|
|
3
|
+
</svg>
|
|
@@ -4,7 +4,7 @@ exports.VectorStorePGVector = void 0;
|
|
|
4
4
|
const pgvector_1 = require("@langchain/community/vectorstores/pgvector");
|
|
5
5
|
const transport_1 = require("n8n-nodes-base/dist/nodes/Postgres/transport");
|
|
6
6
|
const sharedFields_1 = require("../../../utils/sharedFields");
|
|
7
|
-
const createVectorStoreNode_1 = require("../shared/createVectorStoreNode");
|
|
7
|
+
const createVectorStoreNode_1 = require("../shared/createVectorStoreNode/createVectorStoreNode");
|
|
8
8
|
const sharedFields = [
|
|
9
9
|
{
|
|
10
10
|
displayName: 'Table Name',
|