How sean1832/sumgpt works
Main Components Identification
The system can be broken down into these key components:
a. Web Interface Layer (Streamlit)
• Located in SumGPT/app directory
• Contains page.py, sidebar_handler.py, and body_handler.py
b. Core Processing Layer
• Located in SumGPT/core directory
• Handles LLM interactions, tokenization, and encryption
c. Data Model Layer
• Located in SumGPT/datamodel directory
• Defines data structures for chunks, LLM models, and parameters
d. Utility Layer
• Located in SumGPT/utils directory
• Provides helper functions and I/O operations
[Web Interface Layer] → [Core Processing Layer] → [OpenAI API]
• ↑ ↑
• [Utility Layer] [Data Model Layer]
Important Relationships to Highlight
• Document flow: Input → Chunking → Parallel Processing → Summary
• Configuration flow: UI → Storage → Encryption → Cookie
• API interaction: Core → OpenAI API
Technical Details
• Python 3.11 runtime
• Streamlit framework
• Supported file formats (.txt, .md)
• Available GPT models (gpt-4o-mini, gpt-4o, etc.)
• Cookie encryption mechanism