paper-qa icon indicating copy to clipboard operation
paper-qa copied to clipboard

Added basic CLI functionality based on click module.

Open malekinho8 opened this issue 2 years ago • 2 comments

Added a method to Docs object that allows user to enter 'chat' mode, which is basically just query on an infinite loop. Reflected changes in setup.py to allow for easy installation. Updated README.md to include a Usage example.

I tried to implement changes based on your suggestion, but not 100% sure if I did everything right. For now I put cli.py in the paperqa.contrib folder which houses the code to enter into chat mode with the Docs object from the CLI. LMK your thoughts/next steps whenever you get a chance!

malekinho8 avatar Apr 17 '23 07:04 malekinho8

Good idea. Might be nice to allow an arbitrary number of arguments? Then one could combine with shell globbing, like:

paperqa my_pdfs/**/*.pdf

MilesCranmer avatar Apr 18 '23 13:04 MilesCranmer

@MilesCranmer Just finished adding your suggestion!

malekinho8 avatar Apr 18 '23 23:04 malekinho8

Hello @malekinho8 thank you for this PR. Version 5 (just released) ships with a CLI, so I am going to close this out.

We appreciate your help and please feel free to continue opening PRs oriented towards the new CLI

jamesbraza avatar Sep 11 '24 17:09 jamesbraza