This project is a lightweight AI-powered assistant that reads documents (PDF/TXT), auto-generates summaries, answers questions based on the document, and challenges the user with logic-based questions. It uses NLP models under the hood to provide an interactive, intelligent reading experience.
smart_assistant/
├── app.py # Main Streamlit app logic
├── summarizer.py # Document summarization
├── qa.py # Q&A from document context
├── challenge.py # Question generation and answer evaluation
├── utils.py # File reading utilities (PDF/TXT)
├── requirements.txt # Python dependencies
└── README.md # You are here!
git clone https://github.com/gtbSrihari/Smart-Assistant.git
cd Smart-Assistant
python -m venv assistant_env
source assistant_env/bin/activate # or assistant_env\Scripts\activate on Windows
pip install -r requirements.txt
streamlit run app.py
.pdf or .txt file.pdfminer.six or direct read.distilbart-cnn-12-6) generates a concise summary.distilbert-base-uncased-distilled-squad) processes the user's question and extracts an answer from the entire document, not just the summary.valhalla/t5-small-qg-hl) generates 3 logic/comprehension questions from the document using keyword-based highlighting.Built by Sri Hari Kande – https://github.com/gtbSrihari?tab=repositories
MIT License – feel free to use, modify, and contribute.
This project is a lightweight AI-powered assistant that reads documents (PDF/TXT), auto-generates summaries, answers questions based on the document, and challenges the user with logic-based questions. It uses NLP models under the hood to provide an interactive, intelligent reading experience.
smart_assistant/
├── app.py # Main Streamlit app logic
├── summarizer.py # Document summarization
├── qa.py # Q&A from document context
├── challenge.py # Question generation and answer evaluation
├── utils.py # File reading utilities (PDF/TXT)
├── requirements.txt # Python dependencies
└── README.md # You are here!
git clone https://github.com/gtbSrihari/Smart-Assistant.git
cd Smart-Assistant
python -m venv assistant_env
source assistant_env/bin/activate # or assistant_env\Scripts\activate on Windows
pip install -r requirements.txt
streamlit run app.py
.pdf or .txt file.pdfminer.six or direct read.distilbart-cnn-12-6) generates a concise summary.distilbert-base-uncased-distilled-squad) processes the user's question and extracts an answer from the entire document, not just the summary.valhalla/t5-small-qg-hl) generates 3 logic/comprehension questions from the document using keyword-based highlighting.Built by Sri Hari Kande – https://github.com/gtbSrihari?tab=repositories
MIT License – feel free to use, modify, and contribute.