Glyph is an open-source platform that enables AI-powered multimodal interactions through standalone tools and an intelligent agentic orchestration layer.
- Manim Integration - Generate mathematical animations and visualizations from natural language prompts using the Manim library
- RAG (Retrieval Augmented Generation) - Upload and query documents with semantic search powered by Supabase vector store and HuggingFace embeddings
- Flowchart Generation - Create visual flowcharts and diagrams automatically
- Agentic Orchestration - LangChain-based agent that intelligently routes requests to the appropriate tool
- Backend: Python with Flask, LangChain, HuggingFace endpoints
- LLM Models: GLM-4.7 (code generation), Zephyr-7B-beta (basic text queries)
- Vector Store: Supabase for document embeddings
- Rendering: Manim for video generation, Mermaid for flowcharts
- Storage: AWS S3 for generated media files
- Python > 3.11
- LangChain & LangChain-HuggingFace
- Langgraph (Agentic orchestration)
- Flask
- HuggingFace Inference API
- Supabase (vector database)
- AWS S3
- Manim
The backend agent uses a LangGraph StateGraph to route each request through a small execution graph instead of a single monolithic handler.
classifier_nodedecides whether the request should go to text generation or Manim video generation.planning_nodecreates a normalized scene plan for video requests.scene_executor_nodegenerates, renders, and uploads one scene at a time.ffmpeg_nodedownloads completed scene videos, concatenates them, and uploads the final stitched output to AWS S3.text_noderuns the RAG text path and preserves both generated content and research metadata in the final response.
# Backend setup
cd backend
pip install -r requirements.txt
# Set environment variables
cp .env.example .env
# Edit .env with your API keys
# Run the server
python src/main.pyHUGGINGFACEHUB_API_TOKEN- HuggingFace API keySUPABASE_URL- Supabase project URLSUPABASE_KEY- Supabase API keyS3_STORAGE_LINK: Optional - URL for the AWS S3 bucket.aws_access_key_id- AWS access keyaws_secret_access_key- AWS secret keyaws_region- AWS regionPARALLEL_API_KEY- Parallel-AI's api key