GifproGifpro

LangChain.js RAG Agent Streaming Demo — Prompt & Example

CODE PREVIEW

エディタを読み込み中…
P

Prompt

Create a single-file HTML app that demonstrates a LangChain.js RAG agent with streaming. The UI has a text area for document input, a chat input, and a streaming chat output. Use Swiper for a smooth onboarding carousel, GSAP for subtle animations, and AOS for scroll effects. The code should be standalone via CDN imports.

このデモは、LangChain.js を使った RAG エージェントのストリーミング出力を実装したものです。ドキュメント(テキスト)を入力し、質問すると、トークン単位でリアルタイムに回答が返ってきます。UI には Swiper のオンボーディングカルーセル、GSAP のアニメーション、AOS のスクロールエフェクトを CDN で取り込んで、1つの HTML ファイルにまとめています。

Prompt Overview

This demo implements streaming output of a RAG agent using LangChain.js. Input a document (text), ask a question, and receive a real-time token-by-token response. The UI incorporates Swiper's onboarding carousel, GSAP animations, and AOS scroll effects via CDN, all bundled into a single HTML file.

Was this prompt helpful?

Comments

Comments appear after moderation

この記事が役に立ったら投げ銭で応援

Apple Pay / Google Pay / カード (Visa/Mastercard/JCB/Amex) / Link / Alipay / WeChat Pay 対応 · Stripeで安全に決済

開発者が選ぶ最強ツール集

運営者が毎日使っているツール・ガジェット 6選

見る
Homeヘルプ