Use this skill when the target corpus is too large or too noisy for main agent memory.
Packaged dependency install:
python3 -m pip install -r {baseDir}/requirements.txt
/.literag/ /.literag/knowledge-libs.json OPENCLAW_WORKSPACE → WORKSPACE → walk upward from the current path until the OpenClaw workspace sentinel files are foundskills/literag/scripts/skills/literag/bin/literagscripts/literag-query.py, scripts/literag-index.py, scripts/literag-status.py, scripts/literag-meta.py, and scripts/lqmemory_search/.literag/knowledge-libs.json when targeting a library or changing configreferences/usage.md when you need command examples, output schema, or the intended search → inspect workflowreferences/configuration.md when adding libraries, source roots, excludes, chunking overrides, or ranking overridesreferences/agent-prompts.md when another agent / ACP harness needs a ready-made LiteRAG prompt templatereferences/optimization-playbook.md when a specific library needs retrieval-quality tuning, ranking cleanup, or indexing-throughput tuningskills/literag/scripts/ only when editing behavior or diagnosing bugsWhen invoked as /literag ..., parse the remaining argument string as a subcommand.
Supported forms:
/literag search /literag inspect [--start N --end N] /literag index [--limit-files N] [--embedding-batch-size N] /literag index-all [--limit-files N] [--embedding-batch-size N]/literag status /literag meta /literag benchmark --query ... If the user gives a natural-language request instead of a strict subcommand, translate it to the nearest supported operation instead of being pedantic.
index_library.py — index one libraryindex_all.py — index all configured librariessearch_library.py — grouped hybrid/fts/vector retrievalinspect_result.py — expand a hit by file path + chunk rangestatus_library.py — show index health / compatibility / countsmeta_library.py — dump raw sqlite meta recordsbenchmark_library.py — benchmark hybrid/fts/vector latency + hit shape across fixed query setsbin/literag — packaged CLI entrypoint for search / inspect / index / status / meta / benchmarkscripts/literag-query.py — query/search/inspect wrapperscripts/literag-index.py — index wrapper for one library or all librariesscripts/literag-status.py — status wrapperscripts/literag-meta.py — meta wrapperscripts/literag-benchmark.py — benchmark wrapperscripts/lq — tiny shell alias for literag-query.py/.literag/knowledge-libs.json search_library.py for grouped retrievalinspect_result.py on the top hit or chosen rangescripts/literag-query.py or scripts/lqscripts/literag-index.py when you need a short indexing entrypointscripts/literag-status.py before debugging weird retrieval or after config changesscripts/literag-meta.py when you need the raw stored metadatascripts/literag-benchmark.py or skills/literag/scripts/benchmark_library.py when you need repeatable retrieval latency / hit-shape comparisonsUse LiteRAG for:
共 1 个版本