With TypeScript
In this guide, you'll learn how to use LlamaIndex with TypeScript
LlamaIndex.TS is written in TypeScript and designed to be used in TypeScript projects.
We do lots of work on strong typing to make sure you have a great typing experience with LlamaIndex.TS.
Enable TypeScript
Enable AsyncIterable for Web Stream
API
Some modules uses Web Stream
API like ReadableStream
and WritableStream
, you need to enable DOM.AsyncIterable
in your tsconfig.json
.
Run TypeScript Script in Node.js
We recommend to use tsx to run TypeScript script in Node.js.
Edit on GitHub
Last updated on