Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rag-stream-intermediate-events-tutorial

> 编程语言
Open source

Tutorial on how to properly send intermediate LlamaIndex events to vercel ai sdk via server-sent events during RAG.

196 stars0 likes1 views
WebsiteGitHub

About

Tutorial on how to properly send intermediate LlamaIndex events to vercel ai sdk via server-sent events during RAG.

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 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

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