See all examples
Our GitHub repository has a wealth of examples to explore and try out. You can check out our examples folder to see them all at once, or browse the pages in this section for some selected highlights.
Check out all examples
It may be useful to check out all the examples at once so you can try them out locally. To do this into a folder called my-new-project
, run these commands:
- npm
- Yarn
- pnpm
npx degit run-llama/LlamaIndexTS/examples my-new-project
cd my-new-project
npm install
yarn dlx degit run-llama/LlamaIndexTS/examples my-new-project
cd my-new-project
npm install
pnpm dlx degit run-llama/LlamaIndexTS/examples my-new-project
cd my-new-project
npm install
Then you can run any example in the folder with tsx
, e.g.:
- npm
- Yarn
- pnpm
npx tsx ./vectorIndex.ts
yarn dlx tsx ./vectorIndex.ts
pnpm dlx tsx ./vectorIndex.ts