KnowledgeBridge Modal App
This Modal app provides distributed computing capabilities for KnowledgeBridge, including:
Features
- Text Extraction: OCR from images and PDF parsing
- Vector Indexing: FAISS-based vector index building
- Vector Search: High-performance semantic search
- Batch Processing: Process multiple documents in parallel
- Task Management: Async task status tracking
Deployment
- Install Modal CLI:
pip install modal
- Authenticate:
modal token set
- Deploy the app:
modal deploy main.py
- Check deployment:
modal app list
Endpoints
Once deployed, your app will be available at:
https://fazeelusmani18--knowledgebridge-main.modal.run/vector-search
https://fazeelusmani18--knowledgebridge-main.modal.run/extract-text
https://fazeelusmani18--knowledgebridge-main.modal.run/build-index
https://fazeelusmani18--knowledgebridge-main.modal.run/batch-process
https://fazeelusmani18--knowledgebridge-main.modal.run/task-status
https://fazeelusmani18--knowledgebridge-main.modal.run/health
Configuration
Update your .env
file with the new endpoint:
MODAL_BASE_URL=https://fazeelusmani18--knowledgebridge-main.modal.run
Usage
The app automatically integrates with your KnowledgeBridge backend through the Modal client.