CoolFace
Apppublic

sama-ai/enterprise_rag

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

๐Ÿ“š Enterprise RAG Platform

PDF-based Retrieval-Augmented Generation system with semantic search and source highlighting.

Features

  • โ€”๐Ÿ“„ PDF Upload - Process documents with automatic chunking
  • โ€”๐Ÿ” Semantic Search - Find relevant content using embeddings
  • โ€”๐Ÿ’ฌ AI Q&A - Get answers grounded in your documents
  • โ€”๐Ÿ“ Source Highlighting - See exactly where answers come from
  • โ€”๐Ÿ“‘ Multi-doc Filtering - Query specific documents or all

Quick Start

  1. 1.Upload PDFs using the sidebar
  2. 2.Select documents to query
  3. 3.Ask questions in the chat
  4. 4.Click source chips to view context

Required Secrets

Add in Settings โ†’ Variables and secrets:

SecretRequiredGet it from
GROQ_API_KEYโœ… Yesconsole.groq.com (free)

Optional Secrets

SecretDescription
QDRANT_URLQdrant Cloud URL for persistent storage
QDRANT_API_KEYQdrant Cloud API key
OPENAI_API_KEYAlternative LLM provider
LLM_PROVIDERgroq (default), openai, anthropic, google

โš ๏ธ Important Notes

  • โ€”Data Persistence: By default, uploaded documents are stored in-memory and will be lost when the Space restarts. For persistent storage, use Qdrant Cloud (free tier available).
  • โ€”API Usage: This app uses LLM APIs which have rate limits. The free Groq tier is sufficient for personal use.

API Endpoints

EndpointMethodDescription
/ingestPOSTUpload PDF
/ingest/documentsGETList documents
/query/askPOSTRAG Q&A
/query/searchPOSTSemantic search
/healthGETHealth check

Links


Made with โค๏ธ using FastAPI, Qdrant, and Sentence Transformers