├── README.md ├── backend ├── .env.example ├── .gitignore ├── README.md ├── app │ ├── __init__.py │ ├── api │ │ ├── __init__.py │ │ └── routers │ │ │ ├── __init__.py │ │ │ └── chat.py │ ├── engine │ │ ├── __init__.py │ │ ├── constants.py │ │ ├── generate.py │ │ ├── index.py │ │ └── loader.py │ └── settings.py ├── data │ └── 101.pdf ├── main.py ├── poetry.lock ├── pyproject.toml └── tests │ └── __init__.py └── frontend ├── .env.example ├── .gitignore ├── README.md ├── app ├── components │ ├── chat-section.tsx │ ├── header.tsx │ ├── status.tsx │ ├── transform.ts │ └── ui │ │ ├── README.md │ │ ├── button.tsx │ │ ├── chat │ │ ├── chat-actions.tsx │ │ ├── chat-avatar.tsx │ │ ├── chat-input.tsx │ │ ├── chat-message.tsx │ │ ├── chat-messages.tsx │ │ ├── chat.interface.ts │ │ ├── codeblock.tsx │ │ ├── index.ts │ │ ├── markdown.tsx │ │ └── use-copy-to-clipboard.tsx │ │ ├── file-uploader.tsx │ │ ├── input.tsx │ │ ├── lib │ │ └── utils.ts │ │ └── upload-image-preview.tsx ├── favicon.ico ├── globals.css ├── layout.tsx ├── observability │ └── index.ts └── page.tsx ├── bun.lockb ├── next.config.json ├── next.config.mjs ├── package.json ├── postcss.config.js ├── public └── llama.png ├── tailwind.config.ts ├── tsconfig.json └── webpack.config.mjs /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/README.md -------------------------------------------------------------------------------- /backend/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/.env.example -------------------------------------------------------------------------------- /backend/.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | storage 3 | .env 4 | -------------------------------------------------------------------------------- /backend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/README.md -------------------------------------------------------------------------------- /backend/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /backend/app/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /backend/app/api/routers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /backend/app/api/routers/chat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/app/api/routers/chat.py -------------------------------------------------------------------------------- /backend/app/engine/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/app/engine/__init__.py -------------------------------------------------------------------------------- /backend/app/engine/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/app/engine/constants.py -------------------------------------------------------------------------------- /backend/app/engine/generate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/app/engine/generate.py -------------------------------------------------------------------------------- /backend/app/engine/index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/app/engine/index.py -------------------------------------------------------------------------------- /backend/app/engine/loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/app/engine/loader.py -------------------------------------------------------------------------------- /backend/app/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/app/settings.py -------------------------------------------------------------------------------- /backend/data/101.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/data/101.pdf -------------------------------------------------------------------------------- /backend/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/main.py -------------------------------------------------------------------------------- /backend/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/poetry.lock -------------------------------------------------------------------------------- /backend/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/backend/pyproject.toml -------------------------------------------------------------------------------- /backend/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /frontend/.env.example: -------------------------------------------------------------------------------- 1 | NEXT_PUBLIC_CHAT_API=http://localhost:8000/api/chat -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/.gitignore -------------------------------------------------------------------------------- /frontend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/README.md -------------------------------------------------------------------------------- /frontend/app/components/chat-section.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/chat-section.tsx -------------------------------------------------------------------------------- /frontend/app/components/header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/header.tsx -------------------------------------------------------------------------------- /frontend/app/components/status.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/status.tsx -------------------------------------------------------------------------------- /frontend/app/components/transform.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/transform.ts -------------------------------------------------------------------------------- /frontend/app/components/ui/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/README.md -------------------------------------------------------------------------------- /frontend/app/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/button.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/chat/chat-actions.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/chat/chat-actions.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/chat/chat-avatar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/chat/chat-avatar.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/chat/chat-input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/chat/chat-input.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/chat/chat-message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/chat/chat-message.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/chat/chat-messages.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/chat/chat-messages.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/chat/chat.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/chat/chat.interface.ts -------------------------------------------------------------------------------- /frontend/app/components/ui/chat/codeblock.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/chat/codeblock.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/chat/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/chat/index.ts -------------------------------------------------------------------------------- /frontend/app/components/ui/chat/markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/chat/markdown.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/chat/use-copy-to-clipboard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/chat/use-copy-to-clipboard.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/file-uploader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/file-uploader.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/input.tsx -------------------------------------------------------------------------------- /frontend/app/components/ui/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/lib/utils.ts -------------------------------------------------------------------------------- /frontend/app/components/ui/upload-image-preview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/components/ui/upload-image-preview.tsx -------------------------------------------------------------------------------- /frontend/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/favicon.ico -------------------------------------------------------------------------------- /frontend/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/globals.css -------------------------------------------------------------------------------- /frontend/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/layout.tsx -------------------------------------------------------------------------------- /frontend/app/observability/index.ts: -------------------------------------------------------------------------------- 1 | export const initObservability = () => {}; 2 | -------------------------------------------------------------------------------- /frontend/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/app/page.tsx -------------------------------------------------------------------------------- /frontend/bun.lockb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/bun.lockb -------------------------------------------------------------------------------- /frontend/next.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/next.config.json -------------------------------------------------------------------------------- /frontend/next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/next.config.mjs -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/package.json -------------------------------------------------------------------------------- /frontend/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/postcss.config.js -------------------------------------------------------------------------------- /frontend/public/llama.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/public/llama.png -------------------------------------------------------------------------------- /frontend/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/tailwind.config.ts -------------------------------------------------------------------------------- /frontend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/tsconfig.json -------------------------------------------------------------------------------- /frontend/webpack.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsrohan99/rag-stream-intermediate-events-tutorial/HEAD/frontend/webpack.config.mjs --------------------------------------------------------------------------------