--- title: Conversational RAG | PDF + Website emoji: 📄 colorFrom: indigo colorTo: blue sdk: streamlit sdk_version: "1.32.0" app_file: app.py pinned: false --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference # Conversational RAG | PDF + Website This app allows users to upload PDFs or specify a website URL to chat with the content using a conversational RAG (Retrieval-Augmented Generation) setup. ## 💡 Features - Upload and chat with PDFs - Load and query website content - Context-aware Q&A using LangChain + LLaMA3 via Groq - Session history for persistent conversations ## 🚀 Deployment 1. Add your secrets to Hugging Face Space under **Settings > Secrets**: | Name | Value | |--------------------|---------------------------| | GROQ_API_KEY | your Groq API key | | HUGGINGFACE_API_KEY| your HF API token | 2. Upload the following files to your Space: - `app.py` - `requirements.txt` - `README.md` - Optional: `Dockerfile` (only if you choose Docker as your runtime) 3. Select the appropriate runtime: **Python SDK** (or Docker if using `Dockerfile`) ## 🧠 Powered By - [LangChain](https://www.langchain.com/) - [Groq](https://console.groq.com/) - [Hugging Face Spaces](https://huggingface.co/spaces)