mirror of
https://github.com/run-llama/LlamaIndexTS.git
synced 2026-07-20 02:53:50 -04:00
451 B
451 B
sidebar_position
| sidebar_position |
|---|
| 1 |
Reader / Loader
LlamaIndex.TS supports easy loading of files from folders using the SimpleDirectoryReader class. Currently, .txt and .pdf files are supported, with more planned in the future!
import { SimpleDirectoryReader } from "llamaindex";
documents = new SimpleDirectoryReader().loadData("./data");