Give me your highlighted book before you go to bed, and you'll have fresh, finely processed flashcards by the morning!
.env
file in the project root directory.env
file:
API_KEY=yourSuperSecretKey
LLM_PROVIDER=gemini # Options: gemini, openai, anthropic
.env
in your .gitignore
filevenv
Run in the main directory of the project:
python3 -m venv venv
source venv/bin/activate
To install all dependencies:
pip install -r requirements.txt
If you change the dependencies, update requirements.txt
:
pip freeze > requirements.txt
To exit the virtual environment:
deactivate
conda
Run in the main directory of the project:
conda env create -f environment.yml
conda activate myenv
To install all dependencies:
conda install --file requirements.txt
If you change the dependencies, update environment.yml
:
conda env export --name myenv --file environment.yml
To exit the conda environment:
conda deactivate
python main.py your_highlighted_book.pdf
DATABASE_PATH
and TABLE_NAME
variables in the scripts to customize the database location and table name.