How rycerzes/shl-rag-chatbot works
Main components
• Frontend:
• Next.js Application: Represent the client-side application that handles user interactions.
• UI Components: Include components for chat interfaces, messages, recommendation tables, and theming.
• Utility Libraries: Show supporting libraries in “lib” for extracting recommendations and other utilities.
• Backend:
• HTTP Server: Use “app.py” as the entry point of the backend service.
• Processing Modules: Include “brain.py” and “evaluation.py” as core processing components (possibly handling business logic or ML/AI functions).
• Scraper Module: Under the “scraper” directory, include sub-components like html_parser, playwright_scraper, and request_dl. Also, note the CSV file (shl_solutions.csv) that might serve as a static data source or reference.
• Dependency & Build Management: Represent configuration files (pyproject.toml, requirements.txt) as part of the backend’s setup layer.
• Data/Integration Layer (if applicable):
• Although there is no dedicated "database" directory, the CSV file indicates data persistence or seed data.
Relationships and interactions
• Backend app to the Scraper module to highlight that data is either fetched or refreshed dynamically.
• Optionally, if data flows are relevant, indicate how the scraped information (or processed recommendations) might be utilized by the frontend.
Architectural patterns and design principles
• Separation of concerns: Clearly partition the system into frontend and backend with distinct responsibilities.
• Modularization: Both backend and frontend are structured in sub-modules (e.g., consistent organization in “scraper” and in “components”/“hooks”).
• Maintainability: Emphasize the use of configuration and dependency management files (like pyproject.toml, requirements.txt, and bun.lock/package.json) that underline a modern development approach.