Skip to main content

Simple CLI to talk to a file

Project description

talk-to-a-file

This is a very simple utility script that I just created so that you could send the content of a pdf to an LLM and talk to it.

instructions

To install the app, you just need to do,

pip install git+https://github.com/deven367/talk-to-a-file

or

git clone https://github.com/deven367/talk-to-a-file
cd talk-to-a-file
pip install -e .

[!NOTE] The package will be uploaded on pypi soon.

prerequisites

To use this package, you need to use your own ANTHROPIC_API_KEY. Before using the CLI command, you need to set the environment variable. To do so,

export ANTHROPIC_API_KEY=<your-api-key>

how it works

Once the package is installed, you can use the CLI command, talk-to-a-file,

The CLI has a required argument, pdf, which is the path to the pdf file that you want to read.

alt text

Here is a small example, where I talk to the pdf file, docs/tcm.pdf,

alt text

To quit the CLI, you can type exit or quit.

how to contribute

Issues and PRs are welcome. If you have any suggestions or improvements, feel free to open an issue or a PR.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

talk_to_a_file-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

talk_to_a_file-0.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file talk_to_a_file-0.0.1.tar.gz.

File metadata

  • Download URL: talk_to_a_file-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for talk_to_a_file-0.0.1.tar.gz
Algorithm Hash digest
SHA256 10b50173eccc8d23d8c49365a97015b08b068433f53e081b47f6d2590a929cb8
MD5 a5114eb00d04a229740e842b64e89fd1
BLAKE2b-256 d859cba1725e44259db3b8f1181e9fc9b74cd3ab34ed6b3e516f0c8c8b59a174

See more details on using hashes here.

File details

Details for the file talk_to_a_file-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for talk_to_a_file-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5056c8e8b5de4eb1f3fecda24d9be4eb3b77343aab3862bd8c29fe565c638999
MD5 7364917f4bb21d4b7b877d003c6df709
BLAKE2b-256 03b126726605d0d315067a72f3e733775c0e2674bd1d958dbb8b426dee26b278

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page