YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

PDF RAG Chatbot using Gemini AI

This project allows users to upload PDF files and ask questions about the content using Gemini AI and Retrieval-Augmented Generation (RAG).

Features

  • Upload multiple PDFs
  • Extract text from PDFs
  • Chunk text intelligently
  • Store embeddings using FAISS
  • Ask questions from documents
  • Powered by Google Gemini AI
  • Deployable on Hugging Face Spaces

Tech Stack

  • Streamlit
  • LangChain
  • Google Gemini API
  • FAISS Vector Database
  • Hugging Face Spaces

Setup Instructions

1. Install Dependencies

pip install -r requirements.txt

2. Add API Key

Create a .env file:

GOOGLE_API_KEY=YOUR_API_KEY

For Hugging Face Spaces:

  • Go to Settings โ†’ Repository Secrets
  • Add:
    • Key: GOOGLE_API_KEY
    • Value: Your Gemini API Key

3. Run Locally

streamlit run app.py

Deployment

Deploy easily on Hugging Face Spaces using Streamlit SDK.

Author

Built with โค๏ธ using Gemini AI + LangChain

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support