feat: add REST/WebSocket API layer, Tailwind UI and API tests#20
Merged
umbertogriffo merged 8 commits intoumberto/add-ts-frontendfrom Feb 25, 2026
Merged
Conversation
…aming, and API tests Co-authored-by: umbertogriffo <1609440+umbertogriffo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Modernise RAG chatbot with React frontend and API layer
Modernise RAG Chatbot: REST/WebSocket API layer, Tailwind UI, and API tests
Feb 23, 2026
…mprehensive tests
…mprehensive tests
…mprehensive tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a significant backend and frontend update to support document upload and management, as well as a streaming chat API and a new, modernised React UI.
The backend adds REST endpoints for document management, a WebSocket endpoint for streaming chat, and centralises dependency injection.
The frontend is refactored to use custom hooks and Tailwind CSS for a more interactive and visually modern experience, including a sidebar for document uploads and a streaming chat interface.
Backend Improvements
documents.pyto upload, list, and delete documents, with in-memory metadata storage and file validation using allowed extensions from settings.chat_stream.pyfor token-by-token streaming chat responses, utilising dependency injection for the LLM client.Frontend Improvements
App.tsxto use Tailwind CSS, introduced a sidebar for document management, and modernised the chat interface.DocumentUploadcomponent for drag-and-drop uploads, progress, and document listing.ChatWindowto match the new design, support streaming, and improve message rendering..gitignoreto excludepackage-lock.json.