How anjishnu-mukherjee/arethos works
1. Frontend (react-app): A React.js application that serves the user interface. It includes components like the landing page, upload screen, and BlobStorage integration, with configurations (Tailwind, PostCSS) and standard React files.
2. Backend (arethos-back): A Python-based API and AI logic hosted using Azure Functions. It includes the main function_app.py, configuration files (host.json), and a utilities folder containing modules for blob storage operations, image analysis, embedding generation, question parsing, and PDF evaluation.
Main Components
• Frontend: Represent the React app as one component. Emphasize its role as the client interface which interacts with users, manages file uploads, and calls backend endpoints. Components like LandingPage, UploadScreen, and BlobStorage should be highlighted.
• Backend: Represent the Python API (hosted as Azure Functions) that processes requests. This includes:
• The core function (function_app.py) that likely orchestrates request handling.
• The various utility modules (e.g., blob_storage, embedding, imageAnalysis, parse_question, pdf_eval) that encapsulate the business logic.
• External Services: Clearly mark the integration with external dependencies:
• Google Gemini API for grading.
• Pinecone Vector Database.
• Azure Storage (as referenced by environment variables and usage in blob_storage utilities).
Out Relationships and Data Flow
• Google Gemini API (for processing and grading assessments).
• Pinecone (for handling vector storage and retrieval).
• Azure Storage (for storing and retrieving files or blobs).
Architectural Patterns and Components
• Since it’s a full-stack application, clearly denote the separation between the UI (React) and the business/AI logic (Python Azure Functions) as the primary division.
• That the backend follows a modular design by breaking out different functionalities into utility modules (e.g., image analysis, embedding generation) which helps in adhering to separation of concerns.
• Optionally, incorporate symbols or annotations to indicate that asynchronous processing or external API communication is happening in the backend.
Relevant Technologies and Frameworks
• For the Frontend: React.js, Tailwind CSS, and supporting libraries from package.json.
• For the Backend: Python 3.10+, Azure Functions (indicated by host.json and function_app.py), and dependencies listed in requirements.txt.
• External technology labels: Google Gemini API, Pinecone, and Azure components.