Skip to main content

Used to print entries from jsonl files, developed with LLM evals in mind.

Project description

pprint_problems

Used to print entries from jsonl files, developed with LLM evals in mind.

Installation

pip install pprint_problems

Development

This is still a work in progress. If you have any suggestions or improvements, please feel free to open an issue or a pull request, or contact the author directly.

Usage

Here are some recommended ways to use this script:

1. Search for particular problems:
    pprint_problems problems.jsonl -r --search "keyword" -b

2. Load a local file:
    pprint_problems test_problems.jsonl --randomize -n 1 --parts code tests

3. Load a local file with "cat":
    cat problems.jsonl | grep "search_term" | pprint_problems -n 1 -p code

4. Load and randomize problems:
    pprint_problems -r -n 1 problems.jsonl

5. Use some arguments to only load a subset:
    pprint_problems my_problems.jsonl --n 3 --width 100 --line-numbers --randomize

6. Print out the structure:
    pprint_problems --structure test_data.jsonl

7. Print out the raw JSON:
    pprint_problems --n 1 --raw problems.jsonl

8. Manually filter problems with y/n on the keyboard:
    pprint_problems problems.jsonl --manual-filter -p code broken_diff

9. Use the most recently modified file in a directory:
    pprint_problems --dir_most_recent my_jsonl_files/ --structure

10. Graph the distribution of a particular key:
    pprint_problems mydata.jsonl --graph --parts vocab_size

11. Print stats, similarly to graphing:
    pprint_problems mydata.jsonl --stats --parts vocab_size

License

This project is licensed under the terms of the MIT license.

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

pprint_problems-0.1.8.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pprint_problems-0.1.8-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file pprint_problems-0.1.8.tar.gz.

File metadata

  • Download URL: pprint_problems-0.1.8.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pprint_problems-0.1.8.tar.gz
Algorithm Hash digest
SHA256 886deca792ab5384cf06e2fe862aaf733d4365f136c44b0afe6c62460f18bd3c
MD5 78cc6faf19b0d9085a0f4938c511bc50
BLAKE2b-256 34ed6063af177c86ef45f2660f1c1cec50bc299121d63e88fa8340af0c2ae647

See more details on using hashes here.

File details

Details for the file pprint_problems-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for pprint_problems-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3a836c5758830b8dcb2ee54d4ef0aeaf73fd16af01c835dfa4f3f97d936ff64d
MD5 a666e4e74aae10db210b2ea5a12123aa
BLAKE2b-256 53711c7204b75522bb508d63fd9c06b65d4acc94655188056193d59a3fe32fd5

See more details on using hashes here.

Supported by

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