mariusguvernatoru/romanianrag
0
RAG Demo — AI-Powered Document Q&A
A Retrieval-Augmented Generation demo that shows potential business clients how AI can answer questions from any document.
Setup
Hugging Face Spaces
- Create a new Space with Gradio SDK
- Upload
app.pyandrequirements.txt - Add your
OPENAI_API_KEYas a Space secret (Settings → Secrets) - The app will start automatically
Local Development
pip install -r requirements.txt
export OPENAI_API_KEY="your-key-here" # or set in .env
python app.pyWordPress Embedding
Use an iframe to embed the Space:
<iframe
src="https://your-username-rag-demo.hf.space"
frameborder="0"
width="100%"
height="800"
style="border: none; border-radius: 8px;"
></iframe>Knowledge Bases
- Acme Corp Employee Handbook — Fictional company policies (HR, IT, expenses, etc.)
- Aesop's Fables — 12 classic fables with morals
- World Mythology — Greek, Norse, Egyptian, and world myths
