Spaces:
Runtime error
Runtime error
A newer version of the Gradio SDK is available: 6.13.0
metadata
title: DDaT RAG Chatbot
emoji: π§
colorFrom: green
colorTo: purple
sdk: gradio
sdk_version: 4.26.0
app_file: app.py
pinned: false
RAG Chatbot for DDaT Knowledge Base (Gradio + Hugging Face)
This chatbot answers questions using Retrieval-Augmented Generation (RAG) powered by LangChain + OpenAI, loading multiple PDFs from a folder.
π How It Works
- Upload documents to
knowledge_base/(PDF format) - They are indexed and embedded into a vector DB (FAISS)
- Queries are answered using OpenAI with document grounding
π¦ Files
app.pyβ main Gradio chatbot apprequirements.txtβ dependenciesREADME.mdβ Hugging Face setup infoknowledge_base/β folder to store your PDFs
π How to Deploy
Create a Gradio Space
Upload:
app.pyrequirements.txtREADME.mdknowledge_base/folder with your PDFs
Go to Settings β Secrets, add:
OPENAI_API_KEY = sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxβ Your chatbot will be live and answer questions from your full document base!