Skill
LightRAG local ollama graphrag
Turnkey local GraphRAG: doc corpus -> KG -> multi-mode retrieval, no paid API.
Primitives inside (11)
dedicated-db-per-autobuilt-graphdisciplinePoint auto-KG builders (LightRAG etc.) at a DEDICATED Neo4j database, never a shared application DB - auto-generated schemas conflict with and pollute application graphs.
When: Wiring an automatic graph-building tool to an existing Neo4j instance.
embeddingfunc-no-double-wrapgotcha-fixLightRAG functions already decorated with @wrap_embedding_func_with_attrs (ollama_embed is) must be called via .func — wrapping them AGAIN inside EmbeddingFunc() is a documented upstream error pattern; the lambda-inside-EmbeddingFunc idiom is the aging form.
When: Wiring a custom or provider embedding function into LightRAG.
guarded-import-actionable-exitfailsafeA bundled script whose heavy dependency may be absent must catch the ImportError and exit 1 with the exact install command — never a raw traceback — and the selftest asserts this guard path when the dep is genuinely missing.
When: Shipping runnable scripts inside skills/packages where the target machine may lack the main dependency.
lightrag-32k-ctx-silent-truncationgotcha-fixLightRAG's entity-extraction prompts require >=32k effective context; a smaller Ollama ctx SILENTLY truncates extraction — the KG builds with missing entities and NO error — so pin num_ctx 32768 before any ingest.
When: Any LightRAG ingest against an Ollama-served LLM.
lightrag-query-mode-selectormethodChoose LightRAG query mode per question type: naive = quick factual lookup, local = specific entities/relations, global = cross-document themes, hybrid = both, mix (2026 default) = general purpose.
When: Issuing a query against a LightRAG-built knowledge graph.
ollama-default-ctx-varies-verify-dont-assumecalibrationNever state 'the Ollama default context is N' — 0.23.x defaults OLLAMA_CONTEXT_LENGTH to 4k/32k/256k DEPENDING ON VRAM (and upstream LightRAG cites 8k); the once-true '2048 default' aged into a wrong claim — verify per box and pin explicitly.
When: Any doc or debugging step that reasons about Ollama's effective context window.
ollama-list-vs-ps-diagnosisgotcha-fixollama list shows INSTALLED models, ollama ps shows RUNNING ones - to load a pulled model, ollama run <m> or just issue an API call against it.
When: Diagnosing why an Ollama model appears absent or inactive.
pdf-preextract-before-text-ingestgotcha-fixText-ingest APIs (rag.insert) take plain text — PDFs fail or garbage-ingest unless extracted first with pdfminer.six/pypdf; the ingest script only accepts pre-extracted text.
When: Feeding a mixed corpus (PDFs + text/markdown) into a text-based ingest pipeline.
pip-vs-clone-examples-path-gapgotcha-fixRepo examples/ scripts (visualization helpers etc.) exist ONLY in a cloned repo — pip-installed users don't have them; docs that reference examples/<file>.py by relative path must flag the clone-only prerequisite.
When: Documenting or following a workflow that mixes 'pip install <pkg>' with repo-relative example paths.
purge-derived-caches-after-config-fixgotcha-fixAfter fixing an upstream config or extraction bug (e.g. a truncated context window), delete the pipeline's derived caches / working dir before the re-run that validates the fix — LLM response caches (LightRAG's llm_response_cache.json in the SAME working_dir) replay the old broken outputs, so the fix appears not to work.
When: Re-running an LLM pipeline (LightRAG ingestion or any cached extraction) after a config or code change that should alter previously-cached LLM responses.
research-batches-until-drydisciplineResearch by aggregation: read REAL sources in batches, fold in only genuinely NEW findings per batch, and stop only when a full batch adds zero new items - then declare the research converged/dry.
When: Grounding or lifting an artifact against a body of sources where coverage completeness matters and sampling bias must be avoided.
Get the whole skill
All 11 primitives of this skill as one package, with the order to apply them.
Buy only the primitives you need
Each primitive is 1 credit (≈ €0.10). Pick them from the list above — the button is next to each one.
Upgrade your own skill
Paste your skill; we pick the 5 primitives from the shelf that fit it best, as one bundle for 5 credits (≈ €0.50).
Upgrade my skillNeighbour skills
Skills whose primitives are closest to this one (bge-m3 similarity):