CoolFace
Apppublic

zubair0077/AI-Robotics-Text-Book

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

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:

  1. 1.Retrieving relevant content from the AI Robotics textbook
  2. 2.Using LLMs to generate accurate answers based on the retrieved context
  3. 3.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 key
  • OPENAI_API_KEY: Your OpenAI API key
  • QDRANT_URL: Your Qdrant cluster URL
  • QDRANT_API_KEY: Your Qdrant API key
  • QDRANT_COLLECTION_NAME: Name of the Qdrant collection (default: rag_embeddings)

API Endpoints

  • GET / - Service root endpoint
  • GET /health - Health check endpoint
  • GET /docs - Interactive API documentation
  • GET /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.