Skip to content

Commit

Permalink
Merge pull request #131 from llm-tools/huggingface
Browse files Browse the repository at this point in the history
Confluence documentation
  • Loading branch information
adhityan authored Oct 15, 2024
2 parents 02b1ce1 + 9570daa commit 3097386
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 14 deletions.
28 changes: 28 additions & 0 deletions docs/components/data-sources/confluence.mdx
Original file line number Diff line number Diff line change
@@ -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: '...' }))
```
29 changes: 15 additions & 14 deletions docs/components/data-sources/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<CardGroup cols={4}>
<Card title="PDF file" href="/components/data-sources/pdf-file"></Card>
<Card title="CSV file" href="/components/data-sources/csv"></Card>
<Card title="JSON file" href="/components/data-sources/json"></Card>
<Card title="Text" href="/components/data-sources/text"></Card>
<Card title="Directory" href="/components/data-sources/directory"></Card>
<Card title="Web page" href="/components/data-sources/web-page"></Card>
<Card title="Youtube Video" href="/components/data-sources/youtube-video"></Card>
<Card title="Youtube Channel" href="/components/data-sources/youtube-channel"></Card>
<Card title="Youtube Search" href="/components/data-sources/youtube-search"></Card>
<Card title="DOCX file" href="/components/data-sources/docx"></Card>
<Card title="PPT file" href="/components/data-sources/ppt"></Card>
<Card title="Excel file" href="/components/data-sources/excel"></Card>
<Card title="Sitemap" href="/components/data-sources/sitemap"></Card>
<Card title="Custom" href="/components/data-sources/custom"></Card>
<Card title="PDF file" href="/components/data-sources/pdf-file" />
<Card title="CSV file" href="/components/data-sources/csv" />
<Card title="JSON file" href="/components/data-sources/json" />
<Card title="Text" href="/components/data-sources/text" />
<Card title="Directory" href="/components/data-sources/directory" />
<Card title="Confluence" href="/components/data-sources/confluence" />
<Card title="Web page" href="/components/data-sources/web-page" />
<Card title="Youtube Video" href="/components/data-sources/youtube-video" />
<Card title="Youtube Channel" href="/components/data-sources/youtube-channel" />
<Card title="Youtube Search" href="/components/data-sources/youtube-search" />
<Card title="DOCX file" href="/components/data-sources/docx" />
<Card title="PPT file" href="/components/data-sources/ppt" />
<Card title="Excel file" href="/components/data-sources/excel" />
<Card title="Sitemap" href="/components/data-sources/sitemap" />
<Card title="Custom" href="/components/data-sources/custom" />
</CardGroup>

<br/ >
Expand Down
1 change: 1 addition & 0 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3097386

Please sign in to comment.