A CLI AI agent that summarizes any text file and lets you ask questions about it. Built with LangChain + Groq (Mixtral).
- Install dependencies:
pip install -r requirements.txt- Set your Groq API key:
export GROQ_API_KEY=your_key_hereGet a free key at https://console.groq.com
python summarizer.py path/to/your/file.txtThe agent will:
- Load and read the file
- Automatically generate a summary
- Drop into a Q&A loop where you can ask anything about the file
python summarizer.py notes.txt
Reading: notes.txt
File loaded (2400 characters)
==================================================
SUMMARY
==================================================
The document covers...
==================================================
Ask questions about the file (type 'exit' to quit)
==================================================
You: What are the main points?
Agent: ...
You: exit
Bye!Any plain text file — .txt, .md, .csv, .py, .go, etc.