mirror of
https://github.com/run-llama/create_llama_projects.git
synced 2026-07-01 20:54:24 -04:00
10 lines
218 B
TypeScript
10 lines
218 B
TypeScript
import { SimpleDirectoryReader } from "llamaindex";
|
|
|
|
export const DATA_DIR = "./data";
|
|
|
|
export async function getDocuments() {
|
|
return await new SimpleDirectoryReader().loadData({
|
|
directoryPath: DATA_DIR,
|
|
});
|
|
}
|