Botzy PDF is an interactive AI assistant that can answer questions based on the content of any PDF. Upload a PDF, ask questions, and get precise, context-aware responses.
Botzy PDF is a web app built with Streamlit and the Google Gemini API. It uses a Retrieval-Augmented Generation (RAG) workflow to ensure the AI provides accurate answers based on your PDFs.
- Upload PDF → The content is split into chunks.
- Generate embeddings → Each chunk is converted into a vector representation and stored in a vector database.
- User asks a question → The app converts the question into a vector too.
- Retrieve relevant chunks → The system finds the chunks most similar to the question.
- LLM generates answer → The AI uses only the relevant context to provide a grounded, accurate response.
This workflow prevents AI "hallucinations" (made-up answers) and ensures that all responses are based on the actual content of the PDFs.
- Upload PDFs and get instant AI-powered answers.
- Avoids hallucinations by using RAG: only relevant chunks are used for responses.
- Interactive chat interface built with Streamlit.
- Supports multiple queries in a single session.
- Easy to extend to more document types or AI models.
Botzy PDF is built with:
PythonStreamlitfor the frontend and chat interfaceGoogle Generative AI (Gemini)for LLM responsesPyPDF2for PDF parsingchromadbandsentence-transformersfor embeddings and vector database- Custom Python utilities for text chunking and RAG workflow
Clone the repository and install dependencies:
git clone https://github.com/Nilyz/llm-pdf-assistant.git
cd llm-pdf-assistant
pip install -r requirements.txt