---
title: '📄 PPT file'
---

You can load any pptx file from your local file system or through a URL.

## Install MSOffice addon

```bash
npm install @llm-tools/embedjs-loader-msoffice
```

## Usage

```ts
import { RAGApplicationBuilder } from '@llm-tools/embedjs';
import { OpenAiEmbeddings } from '@llm-tools/embedjs-openai';
import { HNSWDb } from '@llm-tools/embedjs-hnswlib';
import { PptLoader } from '@llm-tools/embedjs-loader-msoffice';

const app = await new RAGApplicationBuilder()
.setModel(SIMPLE_MODELS.OPENAI_GPT4_O)
.setEmbeddingModel(new OpenAiEmbeddings())
.setVectorDatabase(new HNSWDb())
.build();

app.addLoader(new LocalPathLoader({ filePathOrUrl: '...' }))
```
