Skip to content

Sasikumaran-SA/ChatPDF-GenAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ChatPDF ๐Ÿ—ฃ๏ธ - Using Generative AI

This is a Streamlit hosting website, where user can give their own Gemini API key and Qdrant API key, and upload a PDF file and ask any question from that PDF. A interactive user interface is made using streamlit, and the uploaded book content is broken down into multiple chucks and get stored in the Qdrant vector-base. The user questions are processed using gemini-2.0-flash model, where the related content from Qdrant vector-base are retrived and sent along with query to the gemini model.


๐Ÿง  Built With

  • Streamlit
  • Langchain
  • Qdrant
  • Google Generative AI

โ˜๏ธ Website link

https://chatpdf-genai-z9sddcsazzfxoocx56jtvq.streamlit.app


๐Ÿ” Setup

  1. Download this repository from github.
git clone https://github.com/Sasikumaran-SA/ChatPDF-GenAI.git
cd ChatPDF-GenAI
  1. Setup the virtual environment. You can setup virtual environment if you want. (Optional)
python -m venv .venv
./.venv/Scripts/activate
  1. Install requirements.
pip install -r requirements.txt
  1. Run the app.
streamlit run app.py

๐Ÿง‘โ€๐Ÿ’ป How to use the website

  1. Open the link given above in any browser.
  2. Give Gemini API key, Qdrant URL, Qdrant API key. (If you don't have one create using the link given below)
  3. Upload a PDF. (Importantly, the uploading PDF should have text which can be seleted/copied)
  4. Select Process PDF and wait for some time. This will take time depending upon the size of the pdf and the network speed.
  5. Now using the dialog box shown below the website, you can ask your questions about the PDF and get the answers from it.

About

A website hosted by Streamlit, used to upload pdf and ask question from it. It upload pdf content data in Qdrant vector-base, and uses Gemini API to answer the query.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages