A simple AI-powered document analyzer that extracts summaries, key insights, and answers questions from your PDFs and text files.
Live Demo: https://anydoc.onrender.com
Upload a document and instantly get AI-powered summaries, key insights, and answers to your questions.
⭐ If you find Anydoc useful, consider giving the project a star on GitHub!
- Smart Summaries - Get the gist of any document in a few sentences
- Key Insights - Pull out the most important points without reading everything
- Q&A - Ask questions about your document and get straight answers
- Dark Mode - Easy on the eyes (because we all stare at screens too much)
- Fast - Uses Groq's speedy API so you're not waiting around
- Works on mobile - Because sometimes you need to check documents on your phone
- Frontend: Streamlit
- AI: Groq with Llama 3.1
- PDF Processing: PDFPlumber
- Language: Python
- Python 3.8 or newer
- A Groq API key (grab one for free at console.groq.com)
-
Clone the repo
git clone https://github.com/So-coder-ai/Anydoc.git cd Anydoc -
Install the requirements
pip install -r requirements.txt
-
Set up your API key
cp .env.example .env
Edit
.envand add your Groq API key. -
Run it
streamlit run app.py
-
Open your browser
Go to:
http://localhost:8501
anydoc/
├── app.py # The main Streamlit app
├── utils/
│ ├── parser.py # Handles PDF and text file reading
│ └── llm.py # Talks to Groq API
├── requirements.txt # Python packages we need
├── .env.example # Example environment file
├── .gitignore # Stuff git should ignore
└── README.md # This file
Create a .env file with:
GROQ_API_KEY=your_groq_api_key_here
GROQ_MODEL=llama-3.1-8b-instantNote: If you are using a different Groq model in your deployment, update
GROQ_MODELaccordingly.
- PDF files (as long as they have selectable text)
- Plain text files (
.txt)
Note: Scanned PDFs won't work because the text needs to be selectable, not just an image.
Found a bug or have an idea? Great!
-
Fork this repo
-
Create a feature branch
git checkout -b feature/your-cool-idea
-
Commit your changes
git commit -m "Add your cool idea" -
Push to your branch
git push origin feature/your-cool-idea
-
Open a Pull Request
MIT License - do whatever you want with it.
- Streamlit for making web apps simple to build
- Groq for the fast AI API
- PDFPlumber for handling PDFs
- Open an issue for bugs
- Open an issue for feature requests
- Email: shivnarainofficial24@gmail.com
🌐 Live Demo: https://anydoc.onrender.com 💻 GitHub: https://github.com/So-coder-ai/Anydoc