TypeScript data framework for LLM applications providing ingestion, indexing, and query interfaces.
Use your own data with large language models (LLMs, OpenAI ChatGPT and others) in JS runtime environments with TypeScript support.
Documentation: https://ts.llamaindex.ai/
Try examples online:
LlamaIndex.TS aims to be a lightweight, easy to use set of libraries to help you integrate large language models into your applications with your own data.
LlamaIndex.TS supports multiple JS environments, including:
For now, browser support is limited due to the lack of support for AsyncLocalStorage-like APIs
npm install llamaindex
pnpm install llamaindex
yarn add llamaindex
See our official document: https://ts.llamaindex.ai/docs/llamaindex/getting_started
In most cases, you'll also need to install provider packages to use LlamaIndexTS. These are for adding AI models, file readers for ingestion or storing documents, e.g. in vector databases.
For example, to use the OpenAI LLM, you would install the following package:
npm install @llamaindex/openai
pnpm install @llamaindex/openai
yarn add @llamaindex/openai
Check out our NextJS playground at https://llama-playground.vercel.app/. The source is available at https://github.com/run-llama/ts-playground
See our documentation: https://ts.llamaindex.ai/docs/llamaindex/getting_started/concepts
Please see our contributing guide for more information. You are highly encouraged to contribute to LlamaIndex.TS!
Please join our Discord! https://discord.com/invite/eN6D2HQ4aX
Preview
Markdown
[](https://attestry.ai/models/npm-llamaindex)HTML
<a href="https://attestry.ai/models/npm-llamaindex"><img src="https://regseal.ai/api/v1/registry/badge/npm-llamaindex" alt="RegSeal Verification Status" /></a>