Spaces:
Sleeping
Sleeping
metadata
title: ClientSphere RAG Backend
emoji: π€
colorFrom: blue
colorTo: purple
sdk: docker
sdk_version: 4.0.0
python_version: '3.11'
app_file: app.py
pinned: false
ClientSphere RAG Backend
FastAPI-based RAG (Retrieval-Augmented Generation) backend for ClientSphere AI customer support platform.
Features
- π Knowledge base management
- π Semantic search with embeddings
- π¬ AI-powered chat with citations
- π Confidence scoring
- π Multi-tenant isolation
- π Usage tracking and billing
API Endpoints
GET /health/live- Health checkGET /kb/stats- Knowledge base statisticsPOST /kb/upload- Upload documentsPOST /chat- Chat with RAGGET /kb/search- Search knowledge base
Environment Variables
Required:
GEMINI_API_KEY- Google Gemini API keyENV- Set toprodfor productionLLM_PROVIDER-geminioropenai
Optional:
ALLOWED_ORIGINS- CORS allowed origins (comma-separated)JWT_SECRET- JWT secret for authentication
Documentation
See README_HF_SPACES.md for deployment details.