How npl1228/treamai works
TreamAI is a chat collaboration application with an AI agent that stores team knowledge and answers questions from it. Users enter through the web client, authenticate and navigate chats, then send messages; the backend routes messages to ordinary chat handling or private-agent intent classification, retrieval, and response generation. Team messages also feed buffered summarization and memory storage, while pruning maintains that memory. The graph preserves documented social, notification, meeting, and account areas, but their backend wiring is not fully visible in the excerpts; dashed edges mark those evidence limits.
Main entry points: App.jsx Route shell · bot.py Message dispatcher · private_agent_pipeline.py Private agent intent · storage_pipeline.py Message summarization
Components 23
Web application
- Route shell
frontend/src/App.jsx - App navigation
frontend/src/components/Layout.jsx - Landing
frontend/src/pages/Landing.jsx - Login
frontend/src/pages/Login.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Chat room
frontend/src/pages/ChatRoom.jsx - Chat list
frontend/src/pages/ChatList.jsx - Chat details
frontend/src/pages/ChatInfo.jsx - Friends
frontend/src/pages/FriendsList.jsx - Notifications
frontend/src/pages/Notifications.jsx - Settings
frontend/src/pages/Settings.jsx - Meeting room
frontend/src/pages/MeetingRoom.jsx
Backend services
- HTTP and socket API
backend/main.py - Message dispatcher
backend/bot.py
AI knowledge workflows
- Private agent intent
backend/pipelines/private_agent_pipeline.py - Memory retrieval
backend/pipelines/retrieval_pipeline.py - Message summarization
backend/pipelines/storage_pipeline.py - Memory pruning
backend/pipelines/pruning_pipeline.py - Gemini language model
backend/llm/gemini.py
Persistent memory
- Account and chat data
backend/memory/storage.py - Semantic memory
backend/memory/chroma.py
Other components
- User
- Google Gemini API
Connections 37
- User → Route shell: uses
- Route shell → Landing: routes to
frontend/src/App.jsx - Route shell → Login: routes to
frontend/src/App.jsx - Route shell → App navigation: wraps pages
frontend/src/App.jsx - Route shell → Dashboard: routes to
frontend/src/App.jsx - Route shell → Chat room: routes to
frontend/src/App.jsx - Route shell → Chat list: routes to
frontend/src/App.jsx - Route shell → Chat details: routes to
frontend/src/App.jsx - Route shell → Friends: routes to
frontend/src/App.jsx - Route shell → Notifications: routes to
frontend/src/App.jsx - Route shell → Settings: routes to
frontend/src/App.jsx - Route shell → Meeting room: routes to
frontend/src/App.jsx - User → Chat room: sends messages
- Chat room → HTTP and socket API: calls API
- HTTP and socket API → Account and chat data: reads and writes
backend/main.py - HTTP and socket API → Message dispatcher: dispatches messages
backend/main.py - Message dispatcher → Account and chat data: reads chat data
backend/bot.py - Message dispatcher → Private agent intent: routes private agent
backend/bot.py - Message dispatcher → Memory retrieval: routes queries
backend/bot.py - Message dispatcher → Message summarization: routes storage
backend/bot.py - Private agent intent → Memory retrieval: routes queries
backend/pipelines/private_agent_pipeline.py - Private agent intent → Account and chat data: loads projects
backend/pipelines/private_agent_pipeline.py - Private agent intent → Semantic memory: stores and corrects nodes
backend/pipelines/private_agent_pipeline.py - Private agent intent → Gemini language model: classifies intent
backend/pipelines/private_agent_pipeline.py - Memory retrieval → Account and chat data: loads weights
backend/pipelines/retrieval_pipeline.py - Memory retrieval → Semantic memory: searches and updates
backend/pipelines/retrieval_pipeline.py - Memory retrieval → Gemini language model: generates response
backend/pipelines/retrieval_pipeline.py - Message summarization → Account and chat data: buffers messages
backend/pipelines/storage_pipeline.py - Message summarization → Gemini language model: summarizes messages
backend/pipelines/storage_pipeline.py - Message summarization → Semantic memory: stores nodes
backend/pipelines/storage_pipeline.py - Message summarization → Memory pruning: triggers check
backend/pipelines/storage_pipeline.py - Memory pruning → Semantic memory: reads and deletes
backend/pipelines/pruning_pipeline.py - Gemini language model → Google Gemini API: generates content
- App navigation → Chat list: shows chats
- App navigation → Notifications: links notifications
- User → Friends: manages contacts
- User → Meeting room: joins meetings