GifproGifpro

Demo RAG Agent con LangChain.js y streaming — prompt ejemplo

VISTA DE CÓDIGO

エディタを読み込み中…
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 ファイルにまとめています。

Resumen del prompt

Esta demo implementa la salida en streaming de un agente RAG utilizando LangChain.js. Al ingresar un documento (texto) y hacer una pregunta, las respuestas se devuelven en tiempo real, token por token. La interfaz de usuario incorpora un carrusel de incorporación de Swiper, animaciones de GSAP y efectos de desplazamiento de AOS mediante CDN, todo reunido en un único archivo HTML.

¿Te resultó útil este prompt?

Comentarios

Los comentarios aparecen después de la moderación

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

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

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

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

見る
Inicioヘルプ