This is a project where it helps the readers to get the summary and the preface , and compare it with other books and have a insights about the book.
๐ Marketing Blurb & Summary Generator
This is a Streamlit-based application that allows users to upload PDF documents and generate marketing blurbs and summaries using Groq LLM (LLaMA models) and LangChain.
The application uses Google Gemini embeddings to create a FAISS vector store for document retrieval and Groq LLM for generating engaging content summaries and marketing blurbs.
SCREENSHOT
DEMO VIDEO :
https://drive.google.com/file/d/1kuwBaytfY5vyr-nh5uieBrPbYdQ1dT9F/view?usp=sharingREPORT LINK :
https://docs.google.com/document/d/1WK0YJ1I2V8qv6xXcGUqf5lMAA0BKxZRM/edit?usp=sharing&ouid=108340172359201221784&rtpof=true&sd=true๐ Features
- Upload multiple PDF files.
- Process PDFs to extract content and split into chunks.
- Use Google Gemini embeddings for document vectorization.
- Query uploaded documents and generate marketing blurbs or content summaries using Groq's LLaMA models.
- Interactive, user-friendly Streamlit interface.
- Logos for NIE University, IVIS Labs, and PULSE displayed at the top.
๐ ๏ธ Tech Stack
- Streamlit - Frontend UI
- LangChain - Document processing and retrieval
- Groq LLM - LLaMA3-8B & LLaMA3-70B models for text generation
- Google Gemini - Embeddings for document retrieval
- FAISS - Vector storage
- Python 3.9+
โ๏ธ Installation and Setup
1๏ธโฃ Clone the Repository
git clone
2๏ธโฃ Create Virtual Environment
python -m venv venv
For Linux/macOS: source venv/bin/activate
For Windows: venv\Scripts\activate
3๏ธโฃ Install Dependencies
pip install -r requirements.txt
4๏ธโฃ Add API Keys to .env File
Create a .env file in the project root folder with the following content:
GROQAPIKEY=yourgroqapikeyhere GOOGLEAPIKEY=yourgoogleapikeyhere
๐ How to Get API Keys
๐ Google API Key (Gemini)
- Go to: https://aistudio.google.com/app/apikey
- Sign in with your Google account.
- Generate a new API Key.
- Copy and paste the key into your
.envfile as:
๐ Groq API Key
- Visit: https://console.groq.com/keys
- Sign in or create an account.
- Navigate to the API Keys section.
- Create a new API Key.
- Copy and paste the key into your
.envfile as:
๐ Run the Application
streamlit run app.py
๐ท๏ธ Directory Structure
โโโ app.py # Main Streamlit application โโโ uploaded_pdfs # Directory for storing uploaded PDFs โโโ requirements.txt # Required Python packages โโโ .env # API keys (not included in repo) โโโ README.md # Project documentation โโโ logos # Logos for NIE, IVIS, PULSE โ โโโ NIE_University.png โ โโโ IVIS_logo.png โ โโโ PULSE LOGO.png โโโ ...
Developed By Suraj G Rao