WelliSolutions / HugeJsonViewer

Viewer for JSON files that can be GBs large.
MIT License
284 stars 18 forks source link

Upon successful search, jump to the data that was found. #27

Open ThiloteE opened 9 months ago

ThiloteE commented 9 months ago

How to reproduce:

  1. Open a huge json file (https://huggingface.co/datasets/teknium/OpenHermes-2.5)
  2. Collapse the levels.
  3. In the search bar, search for "system_prompt". Roughly 99.9% of the IDs do NOT contain data related to system_prompt, but 0.01% do. I am looking for data that is related to system_prompt.

What the program is doing:

system_prompt is selected and visualized with yellow background colour.

Problem:

The json file is huge and it takes AGES to scroll through it to find the location of data related to "system_prompt". In particular, I cannot jump to the location of the data (system_prompt) that was found.

Desired solution I would like:

When you find system_prompt (or something else you enter in the search bar), jump to that location.

Describe alternatives you've considered

Only show data that is found. Probably too compute intensive.