LlamaIndexTS  by run-llama

Data framework for LLM apps, server-side focused

Created 2 years ago
2,873 stars

Top 16.6% on SourcePulse

GitHubView on GitHub
Project Summary

LlamaIndex.TS is a data framework for integrating large language models (LLMs) with custom data in JavaScript runtime environments. It targets developers building LLM-powered applications in Node.js, Deno, Bun, and serverless platforms, enabling them to leverage their own data for enhanced LLM responses.

How It Works

LlamaIndex.TS operates by indexing data into manageable "Nodes," which are then converted into numerical "Embeddings" using embedding models. These embeddings capture semantic meaning, allowing for efficient similarity searches. A "QueryEngine" uses these embeddings to retrieve relevant Nodes based on a user's query, providing context to an LLM for generating accurate responses. This approach facilitates Retrieval-Augmented Generation (RAG) by grounding LLM outputs in specific, user-provided data.

Quick Start & Requirements

  • Install core library: npm install llamaindex
  • Install provider packages (e.g., @llamaindex/openai for OpenAI LLM).
  • Supported environments: Node.js >= 20, Deno, Bun, Nitro, Vercel Edge Runtime, Cloudflare Workers. Browser support is limited.
  • Documentation: https://ts.llamaindex.ai/

Highlighted Details

  • Supports a wide range of LLMs including OpenAI, Anthropic, Groq, Llama, Mistral, and more.
  • Offers multiple JS environment support, including serverless runtimes.
  • Core concepts include Documents, Nodes, Embeddings, Indices, QueryEngines, and ChatEngines.
  • Playground available at https://llama-playground.vercel.app/

Maintenance & Community

Licensing & Compatibility

  • License not explicitly stated in the README. (Note: LlamaIndex, the Python counterpart, is typically MIT licensed, but this should be verified for the TS version).
  • Compatibility for commercial use and closed-source linking depends on the specific license.

Limitations & Caveats

Browser support is currently limited due to the lack of specific asynchronous APIs. The specific license for LlamaIndex.TS is not detailed in the provided README, which may impact commercial adoption.

Health Check
Last Commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
23
Issues (30d)
15
Star History
59 stars in the last 30 days

Explore Similar Projects

Starred by Elvis Saravia Elvis Saravia(Founder of DAIR.AI), Tom Moor Tom Moor(Head of Engineering at Linear; Founder of Outline), and
5 more.

promptable by cfortuner

0%
2k
TS/JS library for building full-stack AI apps
Created 2 years ago
Updated 2 years ago
Starred by Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), Anton Troynikov Anton Troynikov(Cofounder of Chroma), and
44 more.

llama_index by run-llama

0.3%
44k
Data framework for building LLM-powered agents
Created 2 years ago
Updated 18 hours ago
Feedback? Help us improve.