File size: 1,358 Bytes
6edebf1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
04355ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
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)