File size: 806 Bytes
c8b5d53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bb79351
 
 
 
 
 
 
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
 # 🧠 PDF Q&A Chatbot using LangChain + Falcon + Gradio

This Space allows you to upload any PDF and chat with it using a lightweight Falcon model via LangChain and Gradio!

## 🚀 Features
- Upload your own PDF at runtime
- Ask natural language questions
- Powered by `tiiuae/falcon-rw-1b` for lightweight inference
- Runs on CPU (HF Spaces free tier compatible)

## 🛠️ Tech Stack
- [LangChain](https://github.com/langchain-ai/langchain)
- [Transformers](https://github.com/huggingface/transformers)
- [Gradio](https://gradio.app/)
- [FAISS](https://github.com/facebookresearch/faiss)
- [Hugging Face Spaces](https://huggingface.co/spaces)

## 📦 Requirements

Make sure your `requirements.txt` includes:

```txt
gradio
transformers
huggingface-hub
faiss-cpu
pypdf
langchain
langchain-community