Zero-cost FAQ chatbot that answers questions from your PDF guides.
| Component | Tool | Cost |
|---|---|---|
| LLM | Groq (Llama 3.1) | Free |
| Embeddings | HuggingFace | Free |
| Vector DB | ChromaDB (local) | Free |
| Frontend | Streamlit | Free |
| Hosting | Streamlit Cloud | Free |
- Go to https://groq.com
- Sign in with Google (no credit card)
- Go to API Keys → Create
- Copy your key
cd projects/faq-chatbot
pip install -r requirements.txt# Create pdfs folder
mkdir pdfs
# Copy your PDFs
cp /path/to/your/pdfs/*.pdf pdfs/
cp /path/to/your/txts/*.txt pdfs/streamlit run app.pygit init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/YOUR_USERNAME/ads-faq-bot.git
git push -u origin main- Go to https://share.streamlit.io
- Sign in with GitHub
- Click "New app"
- Select your repo
- Click "Deploy"
In Streamlit Cloud dashboard:
- Go to your app → Settings → Secrets
- Add:
GROQ_API_KEY = "your_groq_key_here"- Reboot app
Users can ask questions like:
- "How do I set up a Meta ad campaign?"
- "What's the best TikTok ad strategy?"
- "How to monetize ads effectively?"
- "What budget should I start with?"
The bot answers based ONLY on your PDF content.
In app.py, change:
model_name="llama-3.1-70b-versatile" # Options: llama-3.1-8b-instant, mixtral-8x7b-32768model_name="sentence-transformers/all-MiniLM-L6-v2" # Faster: "all-MiniLM-L6-v2"chunk_size=1000, # Smaller = more precise, Larger = more context
chunk_overlap=200- Embed on Your Site - Add as widget to your landing page
- Lead Magnet - Free chat, paid full PDF access
- Consultation Funnel - Chat leads to booking call
- White Label - Build for clients, charge setup fee
faq-chatbot/
├── app.py # Main Streamlit app
├── requirements.txt # Python dependencies
├── README.md # This file
├── pdfs/ # Your PDF documents
│ ├── meta-ads.pdf
│ ├── tiktok-ads.pdf
│ └── ...
└── chroma_db/ # Vector database (auto-created)
- Groq docs: https://console.groq.com/docs
- LangChain docs: https://python.langchain.com
- Streamlit docs: https://docs.streamlit.io
Created for Master A | 2026-02-21