CoolFace
Apppublic

Nithi1509/MicroServices

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
App README

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 info
  • GET /health - Health check
  • POST /process - Process document
  • POST /query - Query document

Environment Variables

  • RAG_API_KEY - API key for authentication (default: sk_9f83d7a4c1b24e8f9d2a6b7c8d9e1f23)
  • PORT - Port to run on (default: 7860)