zubair0077/AI-Robotics-Text-Book
0
AI Robotics Textbook Q&A Service
This is an AI-powered question and answer service for AI Robotics textbook content, using retrieval-augmented generation (RAG) to provide accurate answers based on the textbook.
Overview
This service provides an AI agent that can answer questions about AI Robotics by:
- Retrieving relevant content from the AI Robotics textbook
- Using LLMs to generate accurate answers based on the retrieved context
- Providing citations and sources for generated answers
Hugging Face Space Configuration
This application is configured for deployment on Hugging Face Spaces using Docker.
Ports
- The application runs on port 7860 (standard for Hugging Face Spaces)
Environment Variables
The following environment variables need to be set in the Space secrets:
COHERE_API_KEY: Your Cohere API keyOPENAI_API_KEY: Your OpenAI API keyQDRANT_URL: Your Qdrant cluster URLQDRANT_API_KEY: Your Qdrant API keyQDRANT_COLLECTION_NAME: Name of the Qdrant collection (default: rag_embeddings)
API Endpoints
GET /- Service root endpointGET /health- Health check endpointGET /docs- Interactive API documentationGET /redoc- Alternative API documentation- Other AI agent endpoints for question answering
Architecture
The service uses:
- FastAPI for the web framework
- Qdrant for vector storage
- Cohere for embeddings
- OpenAI/GPT models for question answering
- Retrieval-augmented generation (RAG) for accurate responses
Deployment
This Space is deployed using Docker. The application will automatically start when the Space is launched.
