How redditarun/helix works
Project Type and Purpose
• From the file tree and README, Helix Agent is a full-stack web application.
• Frontend: React + TypeScript (Vite) for a user interface with chat, document upload, and workspace components.
• Backend: Flask (Python) providing REST APIs for chat, document ingestion, and sequence management.
• Persistence: PostgreSQL (via SQLAlchemy + Alembic migrations) and Pinecone (vector store).
• External AI Services: Gemini (LLM) and Pinecone (vector embeddings).
File Structure
• Top level:
• helix-backend/ – Flask service
• helix-frontend/ – React application
• helix-backend/app/
• api/ – route handlers: chat.py, document.py, sequence.py (controllers)
• services/ – business logic: chat_service.py, document_service.py, sequence_service.py
• models/ – ORM classes: Messages, Sequences, Session
• tools/ – utilities for external integrations (e.g., vector tooling, LLM prompts)
• config.py, extensions.py – app configuration, Flask extensions (SQLAlchemy, Migrate, CORS, etc.)
• helix-backend/migrations/ – Alembic DB migrations
• helix-backend/run.py – entrypoint for Flask server
• helix-frontend/src/components/ – UI components: ChatBox, DocumentUpload, NavBar, WorkSpace
README for Additional Insights
• The backend exposes REST endpoints on port 5000.
• The frontend runs on port 5173 and calls backend APIs.
• Requires setting environment variables for DB URL, Gemini API key, and Pinecone key.
Detailed Guidance
• Notes on environment-driven configuration and migrations (e.g., Alembic).