Spaces:
Sleeping
Sleeping
Commit History
-
Comprehensive memory optimizations and embedding service updates (#76)
Seth McKnight +1: Copilot* Comprehensive memory optimizations and embedding service updates (#74) * feat: Disable embedding generation on startup * feat: Complete memory optimization for Render free tier - Fix critical bug: Change default embedding model to paraphrase-albert-small-v2 - Add pre-built embeddings database (98 chunks, 768-dim) - Optimize Gunicorn config for single worker + threads - Reduce batch sizes for memory efficiency - Add Python memory optimization env vars - Disable startup embedding generation - Add build_embeddings.py script for local database rebuilding - Update Makefile with build-embeddings target Expected memory savings: ~300MB from model change + startup optimization * feat: Add comprehensive memory monitoring and optimization - Add memory monitoring utilities with usage tracking and cleanup - Implement memory-aware service loading with MemoryManager - Add enhanced health endpoint with memory status reporting - Optimize Gunicorn config with reduced connection limits and freque…f75da29