LiberLens is an interactive book exploration tool that allows users to upload books and engage in conversations with them using a RAG based LLM app. (Not Deployed Due to Financial constraints!!💵)
LiberLens.Demo.mp4
.
└── booknotes/
├── backend/
│ ├── uploads/
│ ├── app.py
│ └── requirements.txt
└── frontend/
├── public/
├── src/
│ ├── app.js
│ ├── index.css
│ ├── index.js
│ └── reportWebVitals.js
├── package.json
└── package-lock.json
As an avid reader, I've always dreamed of a way to directly interact with the books I love. LiberLens was born from this passion - a desire to dive deeper into texts, to question, explore, and uncover insights that might not be immediately apparent. This project represents my vision of bringing books to life, allowing readers to engage in a dialogue with the wealth of knowledge contained within their pages.
- Python 3.9
- Flask
- TensorFlow
- Groq
- PyPDF2
- NumPy
- scikit-learn
- React
- Material-UI (MUI)
- Axios
-
Navigate to the backend directory:
cd booknotes/backend
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Create a
.env
file in the backend directory and add your Groq API key:GROQ_API_KEY=your_groq_api_key_here
-
Run the Flask application:
python app.py
-
Navigate to the frontend directory:
cd booknotes/frontend
-
Install the required npm packages:
npm install
-
Create a
.env
file in the frontend directory and add the backend URL:REACT_APP_API_URL=http://localhost:5000
-
Start the React development server:
npm start
- Open your browser and go to
http://localhost:3000
- Upload a PDF book using the "Choose Book" button
- Once uploaded, enter questions about the book in the text field
- Click "Ask" to get AI-generated responses based on the book's content
Contributions, issues, and feature requests are welcome! Feel free to check issues page if you want to contribute.
This project is MIT licensed.
Himanshu Mohanty - GitHub
Project Link: https://github.com/HimanshuMohanty-Git24/LiberLens
Happy reading and exploring with LiberLens! 📖✨