How yvann-ba/robby-chatbot works
Project Type and Purpose
• Type: An interactive web application using Streamlit for the frontend.
• Purpose: To provide an AI chatbot with conversational memory that can understand and query various document formats and YouTube videos.
• Key functionality includes data embedding (using the “embedder” module), conversation management (via the “chatbot” and “history” modules), and specialized components for handling tabular data (“robby_sheet”) and YouTube integration.
File Structure for Architectural Components
• Top-level directories and files:
• README.md, requirements.txt, LICENSE, setup.sh, etc.
• .streamlit directory indicating UI configuration.
• The src folder holds the core code.
• Within src:
• Home.py serves as the main entry point for the Streamlit app.
• The “pages” directory contains separate Python files for different pages (Robby-Chat, Robby-Sheet, Robby-YouTube), representing separate UI modules or functionalities.
• The “modules” directory includes:
• chatbot.py (handling conversation logic)
• embedder.py (handling data embeddings)
• history.py (managing conversational memory)
• layout.py and sidebar.py (defining UI layout elements)
• robby_sheet submodule (with table_tool.py) specifically for spreadsheet-like interactions.
• utils.py and possibly other helper modules.
• Presence of configuration files and deployment-related scripts (e.g., setup.sh) indicates instructions for local deployment.
Detailed Steps for the Principal Software Engineer
• Branch out to the three key pages (Chat, Sheet, YouTube) that users interact with.
• How shared components (layout and sidebar) support the entire UI.
• External integrations: show a connection for uploading data files and consuming YouTube video data – indicate any potential external API services.
• Line with a brief description of the data flow (e.g., “User Input → Chatbot Logic”, “Embedding Generation → Chatbot Response”).