百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

rag-stream-intermediate-events-tutorial

> 编程语言
开源

有关如何在 RAG 期间通过服务器发送事件将中间 LlamaIndex 事件正确发送给 Vercel ai SDK 的教程。

196 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

有关如何在 RAG 期间通过服务器发送事件将中间 LlamaIndex 事件正确发送给 Vercel ai SDK 的教程。

In this tutorial, we'll see how to use LlamaIndex Instrumentation module to send intermediate steps in a RAG pipeline to the frontend for an intuitive user experience.

Full video tutorial under 3 minutes We use Server-Sent Events which will be recieved by Vercel AI SDK on the frontend.

Getting Started

First clone the repo:

bash
git clone https://github.com/rsrohan99/rag-stream-intermediate-events-tutorial.git

cd rag-stream-intermediate-events-tutorial

Start the Backend

cd into the backend directory

bash
cd backend

First create .env from .env.example

bash
cp .env.example .env

Set the OpenAI key in .env

bash
OPENAI_API_KEY=****

Install the dependencies

bash
poetry install

Generate the Index for the first time

bash
poetry run python app/engine/generate.py

Start the backend server

bash
poetry run python main.py

Start the Frontend

cd into the frontend directory

bash
cd frontend

First create .env from .env.example

bash
cp .env.example .env

Install the dependencies

bash
npm i

Start the frontend server

bash
npm run dev

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言