9th.tokyo.jpg

System Component Overview

  1. React: The frontend application accessed by the user, which sends HTTP requests and receives responses in JSON format.
  2. Nginx: Acts as a reverse proxy, forwarding requests from React to the backend (FastAPI) and returning the response to the frontend.
  3. FastAPI: The backend API server that processes requests, fetches necessary data from the S3 storage or external services, and returns content to Nginx.
  4. S3: Amazon S3 (Simple Storage Service) is used to store content and configuration data fetched by the system for use in API responses and other backend tasks.
  5. Chat-GPT4o: A service or engine responsible for fetching configuration and initiating AI model generation through AWS Lambda.
  6. Lambda: A serverless computing service that runs the AI model (likely GPT-based) through Gemini, generates data, and stores it in a vector database like Milvus.
  7. Milvus: A vector database where AI-generated data and similar search results are stored, supporting efficient queries and retrieval based on semantic similarity.

Sequence Flow Explanation

  1. Request from React to Nginx:
  2. Nginx as a Reverse Proxy to FastAPI:
  3. FastAPI Fetching Data from Milvus:
  4. Storing Generated Data in Milvus:
  5. Request for Recent Articles or Similar Search Results:
  6. Returning the Response:
  7. 200 OK Response: