Spaces:
Running
Running
metadata
title: RAG Chatbot Backend
emoji: π€
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
RAG Chatbot Backend API
Backend API for the Humanoid AI Robotics Book Chatbot using RAG (Retrieval-Augmented Generation).
π Features
- FastAPI-based REST API
- OpenAI Agents SDK for intelligent responses
- Qdrant vector database for semantic search
- Cohere embeddings for document retrieval
- CORS enabled for frontend integration
π API Endpoints
Health Check
GET /health
Chat
POST /chat
Content-Type: application/json
{
"question": "Your question here"
}
βοΈ Environment Variables
Set these in Space Settings β Variables and secrets:
COHERE_API_KEY- Cohere API keyQDRANT_URL- Qdrant Cloud URLQDRANT_API_KEY- Qdrant API keyQDRANT_COLLECTION- Collection nameOPENAI_API_KEY- OpenAI API keyAGENT_MODEL- Model name (e.g., gpt-4o-mini)
π Frontend
Frontend deployed at: https://hackathon-1-humanoid-ai-robotics.vercel.app
π License
Part of the Humanoid AI Robotics Book Chatbot project.