diff --git a/docs/components/data-sources/confluence.mdx b/docs/components/data-sources/confluence.mdx new file mode 100644 index 0000000..cf405d5 --- /dev/null +++ b/docs/components/data-sources/confluence.mdx @@ -0,0 +1,28 @@ +--- +title: '📄 Confluence' +--- + +You can load all pages from a Confluence space using the `ConfluenceLoader`. + +## Install Confluence addon + +```bash +npm install @llm-tools/embedjs-loader-confluence +``` + +## Usage + +```ts +import { RAGApplicationBuilder } from '@llm-tools/embedjs'; +import { OpenAiEmbeddings } from '@llm-tools/embedjs-openai'; +import { HNSWDb } from '@llm-tools/embedjs-hnswlib'; +import { ConfluenceLoader } from '@llm-tools/embedjs-loader-confluence'; + +const app = await new RAGApplicationBuilder() +.setModel(SIMPLE_MODELS.OPENAI_GPT4_O) +.setEmbeddingModel(new OpenAiEmbeddings()) +.setVectorDb(new HNSWDb()) +.build(); + +app.addLoader(new ConfluenceLoader({ spaceNames: ['...', '...'], confluenceToken: '...' })) +``` diff --git a/docs/components/data-sources/overview.mdx b/docs/components/data-sources/overview.mdx index 699a829..b0b28be 100644 --- a/docs/components/data-sources/overview.mdx +++ b/docs/components/data-sources/overview.mdx @@ -6,20 +6,21 @@ EmbedJs comes with built-in support for various data sources. We handle the complexity of loading unstructured data from these data sources, allowing you to easily customize your app through a user-friendly interface. - - - - - - - - - - - - - - + + + + + + + + + + + + + + +
diff --git a/docs/mint.json b/docs/mint.json index ac39881..42c48af 100644 --- a/docs/mint.json +++ b/docs/mint.json @@ -73,6 +73,7 @@ "components/data-sources/json", "components/data-sources/text", "components/data-sources/web-page", + "components/data-sources/confluence", "components/data-sources/youtube-video", "components/data-sources/youtube-channel", "components/data-sources/youtube-search",