A Retrieval-Augmented Generation (RAG) system to answer questions from a PDF using LangChain, FAISS, and Grok, with a Gradio web interface.
- Install dependencies:
pip install -r requirements.txt - Set
GROQ_API_KEYin Colab secrets or input it in the Gradio interface. - Run:
python RAG_with_Gradio.py
See requirements.txt for dependencies.
- Upload a PDF via the Gradio interface.
- Enter a question and adjust retrieved documents if needed.
- View the answer and source document excerpts.