Nithi1509/MicroServices
0
RAG Microservice (Memory Optimized)
This is a lightweight RAG (Retrieval-Augmented Generation) microservice optimized for HuggingFace Spaces.
Features
- Memory-optimized embedding model (all-MiniLM-L6-v2 - only 80MB)
- Document processing and chunking
- Semantic search with embeddings
- API key authentication
- Detailed logging
Endpoints
GET /- Service infoGET /health- Health checkPOST /process- Process documentPOST /query- Query document
Environment Variables
RAG_API_KEY- API key for authentication (default: sk_9f83d7a4c1b24e8f9d2a6b7c8d9e1f23)PORT- Port to run on (default: 7860)
