Bookish is a command-line tool that asks a question about the content of a PDF file by leveraging your local LLM running on ollama.
Follow these steps to install the project using pip and venv.
- Python 3.x installed on your system
- Clone the repository:
git clone https://github.com/luqs1/bookish.git
cd yourproject- Create a virtual environment:
python3 -m venv .venv- Activate the virtual environment:
-
On macOS and Linux:
source .venv/bin/activate -
On Windows:
.\.venv\Scripts\activate
- Install the dependencies:
pip install -r requirements.txt- Run the project:
Ensure ollama is running.
python main.py --pdf_path [PATH_TO_PDF]You can optionally specify which model to use on ollama
python main.py --pdf_path [PATH_TO_PDF] --model [MODEL_NAME]When you are done working, you can deactivate the virtual environment by running:
deactivate