CoolFace
Apppublic

mariusguvernatoru/romanianrag

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

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

  1. 1.Create a new Space with Gradio SDK
  2. 2.Upload app.py and requirements.txt
  3. 3.Add your OPENAI_API_KEY as a Space secret (Settings → Secrets)
  4. 4.The app will start automatically

Local Development

bash
pip install -r requirements.txt
export OPENAI_API_KEY="your-key-here"   # or set in .env
python app.py

WordPress Embedding

Use an iframe to embed the Space:

html
<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