Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bookish

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.

Installation Guide

Follow these steps to install the project using pip and venv.

Prerequisites

  • Python 3.x installed on your system

Steps

  1. Clone the repository:
git clone https://github.com/luqs1/bookish.git
cd yourproject
  1. Create a virtual environment:
python3 -m venv .venv
  1. Activate the virtual environment:
  • On macOS and Linux:

    source .venv/bin/activate
  • On Windows:

    .\.venv\Scripts\activate
  1. Install the dependencies:
pip install -r requirements.txt
  1. 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]

Deactivating the virtual environment

When you are done working, you can deactivate the virtual environment by running:

deactivate

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages