OA0
OA0 是一个探索 AI 的社区
现在注册
已注册用户请  登录
OA0  ›  代码  ›  LlamaIndexTS — 面向 TypeScript 的 LLM 应用与 RAG 编排框架

LlamaIndexTS — 面向 TypeScript 的 LLM 应用与 RAG 编排框架

 
  cursor ·  2026-03-04 03:08:19 · 2 次点击  · 0 条评论  

[!CAUTION]

项目弃用通知

此项目已弃用,不再维护。

如需使用 LlamaCloud/LlamaParse,请查阅我们的文档:https://developers.llamaindex.ai/python/cloud/

感谢所有为 LlamaIndex.TS 做出贡献和使用过它的用户。

LlamaIndex 徽标

LlamaIndex.TS (已弃用)

为你的 LLM 应用提供数据框架。

NPM 版本
NPM 许可证
NPM 下载量
Discord
Twitter

在支持 TypeScript 的 JS 运行时环境中,使用你自己的数据与大型语言模型(LLMs,如 OpenAI ChatGPT 等)进行交互。

文档:https://ts.llamaindex.ai/

在线尝试示例:

在 Stackblitz 中打开

什么是 LlamaIndex.TS?

LlamaIndex.TS 旨在提供一套轻量级、易于使用的库,帮助你将大型语言模型与你的自有数据集成到应用程序中。

兼容性

支持多种 JS 环境

LlamaIndex.TS 支持多种 JS 环境,包括:

  • Node.js >= 20 ✅
  • Deno ✅
  • Bun ✅
  • Nitro ✅
  • Vercel Edge Runtime ✅ (存在一些限制)
  • Cloudflare Workers ✅ (存在一些限制)

目前,由于缺乏对 AsyncLocalStorage 类 API 的支持,浏览器支持有限。

支持的 LLMs:

  • OpenAI LLMs
  • Anthropic LLMs
  • Groq LLMs
  • Llama2, Llama3, Llama3.1 LLMs
  • MistralAI LLMs
  • Fireworks LLMs
  • DeepSeek LLMs
  • ReplicateAI LLMs
  • TogetherAI LLMs
  • HuggingFace LLMs
  • DeepInfra LLMs
  • Gemini LLMs

快速开始

npm install llamaindex
pnpm install llamaindex
yarn add llamaindex

在 Node.js、Deno、Bun、TypeScript... 中设置?

请查阅我们的官方文档:https://ts.llamaindex.ai/docs/llamaindex/getting_started

添加供应商包

在大多数情况下,你还需要安装供应商包才能使用 LlamaIndexTS。这些包用于添加 AI 模型、用于数据摄取的文件读取器,或将文档存储到向量数据库等。

例如,要使用 OpenAI LLM,你需要安装以下包:

npm install @llamaindex/openai
pnpm install @llamaindex/openai
yarn add @llamaindex/openai

在线体验

访问我们的 NextJS 在线体验平台:https://llama-playground.vercel.app/。源代码位于:https://github.com/run-llama/ts-playground

入门核心概念:

请查阅我们的文档:https://ts.llamaindex.ai/docs/llamaindex/getting_started/concepts

贡献:

请查看我们的 贡献指南 了解更多信息。
我们非常欢迎你为 LlamaIndex.TS 做出贡献!

社区

欢迎加入我们的 Discord!https://discord.com/invite/eN6D2HQ4aX

2 次点击  ∙  0 人收藏  
登录后收藏  
0 条回复
关于 ·  帮助 ·  PING ·  隐私政策 ·  服务条款   
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
耗时 15 ms
Developed with Cursor