From ac7521521833a937e25b8334de585dd38aa54bb2 Mon Sep 17 00:00:00 2001 From: Neeraj Bansal Date: Tue, 30 May 2023 23:12:45 +0530 Subject: [PATCH 1/3] added confluence document loader and html-to-text dependency --- .../documentloaders/Confluence/Confluence.ts | 120 ++++++++++++++++++ .../documentloaders/Confluence/confluence.png | Bin 0 -> 14323 bytes packages/components/package.json | 3 +- 3 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 packages/components/nodes/documentloaders/Confluence/Confluence.ts create mode 100644 packages/components/nodes/documentloaders/Confluence/confluence.png diff --git a/packages/components/nodes/documentloaders/Confluence/Confluence.ts b/packages/components/nodes/documentloaders/Confluence/Confluence.ts new file mode 100644 index 00000000000..c2f3abc0a8d --- /dev/null +++ b/packages/components/nodes/documentloaders/Confluence/Confluence.ts @@ -0,0 +1,120 @@ +import { INode, INodeData, INodeParams } from '../../../src/Interface' +import { TextSplitter } from 'langchain/text_splitter' +// import { GithubRepoLoader, GithubRepoLoaderParams } from 'langchain/document_loaders/web/github' +import { ConfluencePagesLoader, ConfluencePagesLoaderParams } from "langchain/document_loaders/web/confluence"; + +class Confluence_DocumentLoaders implements INode { + label: string + name: string + description: string + type: string + icon: string + category: string + baseClasses: string[] + inputs: INodeParams[] + + constructor() { + this.label = 'Confluence' + this.name = 'confluence' + this.type = 'Document' + this.icon = 'confluence.png' + this.category = 'Document Loaders' + this.description = `Load data from a Confluence Document` + this.baseClasses = [this.type] + this.inputs = [ + { + label: 'Text Splitter', + name: 'textSplitter', + type: 'TextSplitter', + optional: true + }, + { + label: 'Username', + name: 'username', + type: 'string', + placeholder: '', + }, + { + label: 'Access Token', + name: 'accessToken', + type: 'password', + placeholder: '', + }, + { + label: 'Base URL', + name: 'baseUrl', + type: 'string', + placeholder: "https://example.atlassian.net/wiki" + }, + { + label: 'Space Key', + name: 'spaceKey', + type: 'string', + placeholder: '~EXAMPLE362906de5d343d49dcdbae5dEXAMPLE' + }, + { + label: 'Limit', + name: 'limit', + type: 'number', + default: 0, + optional: true + }, + { + label: 'Metadata', + name: 'metadata', + type: 'json', + optional: true, + additionalParams: true + } + ] + } + + async init(nodeData: INodeData): Promise { + const username = nodeData.inputs?.username as string + const accessToken = nodeData.inputs?.accessToken as string + const spaceKey = nodeData.inputs?.spaceKey as string + const baseUrl = nodeData.inputs?.baseUrl as string + const limit = nodeData.inputs?.limit as number + const textSplitter = nodeData.inputs?.textSplitter as TextSplitter + const metadata = nodeData.inputs?.metadata + + const options: ConfluencePagesLoaderParams = { + username, + accessToken, + baseUrl, + spaceKey, + limit + } + + const loader = new ConfluencePagesLoader(options) + + console.log('loader') + let docs = [] + + if (textSplitter) { + docs = await loader.loadAndSplit(textSplitter) + } else { + docs = await loader.load() + } + + if (metadata) { + const parsedMetadata = typeof metadata === 'object' ? metadata : JSON.parse(metadata) + let finaldocs = [] + for (const doc of docs) { + const newdoc = { + ...doc, + metadata: { + ...doc.metadata, + ...parsedMetadata + } + } + finaldocs.push(newdoc) + } + return finaldocs + } + + return docs + } +} + +module.exports = { nodeClass: Confluence_DocumentLoaders } diff --git a/packages/components/nodes/documentloaders/Confluence/confluence.png b/packages/components/nodes/documentloaders/Confluence/confluence.png new file mode 100644 index 0000000000000000000000000000000000000000..3cbb7b3dc2492867afc54c6ddca6ae2219b91aec GIT binary patch literal 14323 zcmc(`c{r5s_XqwkGIlMt>^milY}pxQ$%rIb!jyL!A`NpOVT^qnDodi2T^l9a zOi{{E6imdC>I1lyw+Cx z9UzDm{FfEtUAV?ar-f!l3DffF`Fwy;JMuQ6H zyz*Z5Vwt0aS+`vZe33iOh~wPu7UkW&e>AtT_KlOMTiJaRqlxOUJJAVv(nXF#1^X_O zoSL+U_cd@R?@myTkyYl1?lMGL&8_5z9g#JUzx}#}kQds!V%*2rk^fqMc6j(t255+9fOOW&>LSRm-&OXs4NX!zI&?l*tqwugp_YxkE%k)RL%$?zioV)(;Z z-F4&$$K~K6ALAFuDY+nSf8FD_6jaeioNMan&vPu$nB9Krix$7%OCxN=vnke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YpHLG-y#88 z<_Gv#NF-9TqiJvdllt8xkIA(q(5>Ck1$?|k|I%Z;)=lrRut|~o2%aLkz!y5=wzE^; zC?iizQ+f+!s9AtvU;Ir#045>}Cp2t8^2km>kZz&ppKk@^VzC2(Z{y+GM cf7!K;{8S{rDi{+x&m7 Date: Tue, 30 May 2023 23:22:23 +0530 Subject: [PATCH 2/3] removed ununsed comments --- .../components/nodes/documentloaders/Confluence/Confluence.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/components/nodes/documentloaders/Confluence/Confluence.ts b/packages/components/nodes/documentloaders/Confluence/Confluence.ts index c2f3abc0a8d..7d8dd340414 100644 --- a/packages/components/nodes/documentloaders/Confluence/Confluence.ts +++ b/packages/components/nodes/documentloaders/Confluence/Confluence.ts @@ -1,6 +1,5 @@ import { INode, INodeData, INodeParams } from '../../../src/Interface' import { TextSplitter } from 'langchain/text_splitter' -// import { GithubRepoLoader, GithubRepoLoaderParams } from 'langchain/document_loaders/web/github' import { ConfluencePagesLoader, ConfluencePagesLoaderParams } from "langchain/document_loaders/web/confluence"; class Confluence_DocumentLoaders implements INode { @@ -88,7 +87,6 @@ class Confluence_DocumentLoaders implements INode { const loader = new ConfluencePagesLoader(options) - console.log('loader') let docs = [] if (textSplitter) { From 791af9310edc16168542a2aab1d4fe5e54a7cc95 Mon Sep 17 00:00:00 2001 From: Neeraj Bansal Date: Wed, 31 May 2023 01:20:32 +0530 Subject: [PATCH 3/3] lint fix --- .../nodes/documentloaders/Confluence/Confluence.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/components/nodes/documentloaders/Confluence/Confluence.ts b/packages/components/nodes/documentloaders/Confluence/Confluence.ts index 7d8dd340414..9a69be14efd 100644 --- a/packages/components/nodes/documentloaders/Confluence/Confluence.ts +++ b/packages/components/nodes/documentloaders/Confluence/Confluence.ts @@ -1,6 +1,6 @@ import { INode, INodeData, INodeParams } from '../../../src/Interface' import { TextSplitter } from 'langchain/text_splitter' -import { ConfluencePagesLoader, ConfluencePagesLoaderParams } from "langchain/document_loaders/web/confluence"; +import { ConfluencePagesLoader, ConfluencePagesLoaderParams } from 'langchain/document_loaders/web/confluence' class Confluence_DocumentLoaders implements INode { label: string @@ -31,19 +31,19 @@ class Confluence_DocumentLoaders implements INode { label: 'Username', name: 'username', type: 'string', - placeholder: '', + placeholder: '' }, { label: 'Access Token', name: 'accessToken', type: 'password', - placeholder: '', + placeholder: '' }, { label: 'Base URL', name: 'baseUrl', type: 'string', - placeholder: "https://example.atlassian.net/wiki" + placeholder: 'https://example.atlassian.net/wiki' }, { label: 'Space Key',