Spaces:
Runtime error
Runtime error
Commit History
-
Fix index
f36d1f9
-
Fix AI-enhanced search with comprehensive external source integration
- Enhanced query expansion for better semantic matching (mistral↔mixtral, transformer↔attention) - Fixed external search integration with proper timeout handling for GitHub and web search - Improved error handling and TypeScript compatibility for external search results - Knowledge base documents now get highest priority (relevance boost +0.6) - Added support for parallel GitHub and web search with 8s/5s timeouts respectively - Vector search functionality preserved and working correctly with Modal FAISS index 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>cd55914 -
Fix ai search
e782c0f -
fix mistral ai
a5766c9 -
add route
b5baf9e -
Fix nebius AI
24425b1 -
Fix indexing issue
a8d30b4 -
Add clickable link for vector search results
c79a43d -
update index
07b8ac9 -
Add seed documents to begin with
742d179 -
Update system flow and add default research papers for demo
✨ System Flow Updates: - Updated flow to include document upload and processing pipeline - Added vector index building and hybrid search steps - Integrated Modal distributed computing and Nebius AI - Enhanced with knowledge graph visualization - Updated technology stack references 🌱 Default Documents Seeding: - Added 7 important AI research papers for demo purposes - Includes: Attention Is All You Need, GPT-4, Constitutional AI, RAG, LangChain, RLHF, Emergent Abilities - Automatic seeding on first startup for populated knowledge graph - Papers include full abstracts, metadata, and author information - Enables immediate demo without requiring uploads 🎯 Demo Improvements: - Knowledge graph now populated by default in all environments - System flow reflects actual implemented functionality - Ready for hackathon demonstration with rich content 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>e57738d -
Fix Modal vector index building and storage
- Update Modal app to use remote function calls for proper volume access - Add fallback storage paths for Modal functions (/storage, /tmp, .) - Fix Modal client request format to match API expectations - Remove authentication from Modal API requests - Add comprehensive error handling and debug logging - Deploy Modal app with corrected storage configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>4e2a9bc -
Fix upload functionality for Hugging Face Spaces
- Force enable uploads for HF Spaces environment detection - Fix document processing validation schema - Add better environment debugging - Exclude uploads/ and data/ directories from git tracking - Make Vite errors non-fatal to prevent server crashes 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>741fd46 -
Fix vector index
db97c61 -
Fix file upload
353a9b9 -
Fix Hugging Face Spaces deployment: Handle file permissions and production environment
🔧 Production File Permissions: - Use /tmp directory for uploads and database in production (NODE_ENV=production) - Add error handling for mkdir operations that fail due to permissions - Graceful fallback when directory creation fails 🚀 Hugging Face Spaces Compatibility: - Detect production environment and use writable /tmp paths - Added ENABLE_UPLOADS environment variable to control file upload functionality - Fallback routes for disabled uploads with helpful error messages 💾 Database & Storage Fixes: - SQLite database path: /tmp/knowledgebridge.db in production - Upload directory: /tmp/uploads in production vs ./uploads in development - Error handling for permission denied scenarios 🎯 Graceful Degradation: - App continues to work even when file operations fail - Clear error messages explaining disabled functionality - Traditional search and external sources still available 🔒 Environment Detection: - Automatic detection of production vs development environment - Optional ENABL…ccf1a85 -
Implement complete document upload and processing pipeline with Modal integration
✅ Real Document Upload: - Created SQLite storage replacing in-memory storage with full document metadata - Added file upload API with multer supporting PDFs, images, text files (50MB limit) - Implemented document processing pipeline with Modal integration for heavy workloads ✅ PDF/Image Processing Pipeline: - Modal integration for OCR text extraction using PyPDF2 and Tesseract - Batch processing capabilities for multiple documents concurrently - Document status tracking (pending -> processing -> completed/failed) ✅ Vector Embeddings Storage & Search: - Real embeddings generation using Nebius AI and storage in SQLite - Vector index building using Modal's FAISS implementation - High-performance vector search with relevance scoring ✅ Database Storage: - SQLite storage with proper schema for file metadata, processing status - Document lifecycle management with file path tracking - Search history and results persistence ✅ Batch Processing: - Modal distributed computing for processing la…10ac46e -
Add complete Modal app for distributed computing
Created Modal app with: - Text extraction (OCR, PDF parsing) - Vector indexing with FAISS - High-performance vector search - Batch document processing - Task status tracking - Web endpoints for all functions Updated configuration to use new Modal endpoint. Ready for deployment with 'modal deploy main.py'f70a5f4 -
Add detailed Modal usage logging for debugging
- Added console logs to track Modal vector search attempts - Shows when Modal is being called vs falling back to local search - Helps debug why Modal credits aren't being consumed - Better error handling and status reporting7e9dcae -
Remove Replit plugins from production build
- Restrict Replit plugins to development + REPL_ID environment only - This prevents Replit banner scripts from loading in production - Fixes CSP violations for replit.com scripts in HF Spaces - Keeps clean production builds without dev dependencies7127914 -
Fix CSP frame-ancestors for Hugging Face Spaces
Allow the app to be framed by Hugging Face domains in production to prevent CSP violations. This resolves the frame-ancestors error in the browser console.8a11413 -
Add explicit root route and fix SPA fallback
- Added explicit / route to serve index.html directly - Fixed SPA fallback to not intercept API routes - Should resolve connection issues with the frontend76dbde8 -
Fix health check to prevent restart loop
Add missing API key guard for Nebius Chat Completions check. Now all services properly return 'missing_key' instead of 'error' when API keys are not configured, preventing Docker health probe failures and container restart loops.e1974ad -
Add ping endpoint for server health verification
Added /ping endpoint to ensure server is responsive and help debug connection issues. This provides a simple endpoint to verify the server is running properly.7841477 -
Remove backup route blocking React app
The backup root route was interfering with static file serving. Now the proper SPA routing can handle the root path and serve the React application correctly.30f57ca -
Fix Space issues: Remove blocking route and fix health check
1. Remove emergency route that was blocking React app from loading 2. Fix health check to tolerate missing API keys (missing_key \!= error) - Now returns 200 unless there's a real API error - Space will show as healthy even without all API keys configured This should make the Space show the actual React UI and remove the 'may have issues' warning banner.951fb3f -
Implement proper rate limiting for HF Spaces proxy environment
Instead of disabling rate limiting, configure it properly for Hugging Face Spaces: - Higher limits due to shared proxy infrastructure - Custom key generator using multiple headers - Skip validation to avoid proxy configuration errors - Maintain security while working with HF infrastructuredd22d79 -
Disable rate limiting in production for HF Spaces
Rate limiting causes issues in Hugging Face Spaces proxy environment. Disable for production while keeping it active for local development.0e0c0a2 -
Fix Express trust proxy for Hugging Face Spaces
Enable trust proxy in production to properly handle X-Forwarded-For headers from HF Spaces infrastructure and fix rate limiting.999687d -
Fix port configuration for Hugging Face Spaces
Use port 7860 in production environment to match HF Spaces expectations. Local development still uses port 5000.af2dad0 -
initial commit
7c012de