HF RL Explorer

fix: Make QGramIndex use less memory; fix bug; improve tests&docs

fix: Make QGramIndex use less memory; fix bug; improve tests&docs: a task in life-science-SWE1.0 (Harbor dataset). Title: fix: Make QGramIndex use less memory; fix bug; improve tests&docs

The task

**Title:** fix: Make QGramIndex use less memory; fix bug; improve tests&docs

Part of scalingX/life-science-SWE1.0.