Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.1.0
metadata
title: RAG
emoji: π
colorFrom: yellow
colorTo: green
sdk: gradio
sdk_version: 5.30.0
app_file: app.py
pinned: false
license: mit
short_description: Retrieval-Augmented Generation (RAG)
models:
- bert-base-uncased
- google/flan-t5-base
ππ Retrieval-Augmented Generation (RAG) Demo
A simple yet powerful RAG application that lets you upload documents and ask questions about them.
Features
- π Upload multiple .txt files
- π Automatic document processing and indexing
- π‘ Query your documents using natural language
- π€ Get AI-generated answers based on your content
How It Works
- Upload - Add your text files to the system
- Index - Documents are embedded using
bert-base-uncased - Query - Ask a question about the documents
- Retrieve - The system finds the most relevant content using cosine similarity
- Generate -
flan-t5-basecreates a natural language answer
Technical Details
- Built with Hugging Face's Transformers
- Uses cosine similarity for matching
- No GPU required (ZeroGPU compatible)
- Runs completely in-memory
Usage
Simply upload your text files, ask a question, and get an answer within seconds!
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference