/semantic-search:consult-semantic-okf-tika-malletfrom semantic-search
Inspects and consults an immutable Semantic OKF snapshot whose heterogeneous local documents were extracted by Apache Tika 4.0.0-beta-1 and indexed with Java MALLET 2.1.0. Use for read-only integrity checks, format-aware provenance review, BM25 search, MALLET topic expansion, PPMI association search, reciprocal-rank fusion, or exact grounded follow-up reading. The skill validates Tika-to-ledger parity and treats every topic and retrieval score as non-authoritative; it never builds, repairs, refreshes, or modifies knowledge.
Ships in semantic-search. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Discover exact passages in a validated Tika/MALLET snapshot, then ground every factual statement in the authoritative Semantic OKF concept, ledger, or selected RDF graph.
2.1.0
distribution. It retrains in temporary storage only.answer-pack call with three to five broad queries, --top-k 6, and
--max-sources 10. It validates the snapshot once, fuses repeated hits, retains
at most one passage per source ID, assigns small support IDs, and writes a compact
exact-evidence pack outside the bundle. Do not use search, batch-search, ad
hoc bundle reads, per-source probes, or phrase follow-ups in that workflow. If
the pack does not support the required answer, return the declared null response.question_id, summary, and claims containing statement plus
support_ids. Run finalize-answer with that draft and the unmodified pack. It
constructs first-use indices, copies exact evidence, validates the complete
response, and publishes a new final JSON file outside the bundle. Return that
file unchanged. Never retype or normalize an ID, path, hash, locator, or evidence
index.concept_path. In a source-packed build, open
concepts/<source_id>.md; always resolve the exact locator against the
authoritative ledger text and never rewrite the logical identity.validate-answer. Return it only after the validator confirms first-use ordering
and exact evidence identities.Install the single pinned Python dependency, then inspect:
python -m pip install -r scripts/requirements.txt
python -B scripts/runtime_smoke.py
python -B scripts/query_semantic_okf_tika_mallet.py BUNDLE inspect
Deep inspection requires the exact MALLET runtime bound in the snapshot:
python -B scripts/runtime_smoke.py --java JAVA --mallet-home MALLET_HOME
python -B scripts/query_semantic_okf_tika_mallet.py BUNDLE inspect --deep-validation --java JAVA --mallet-home MALLET_HOME
Ordinary inspection and search need neither Java nor Tika. Deep validation needs MALLET and Java but never needs the Tika distribution because it verifies the persisted extraction receipt rather than rebuilding it.
Exact terms, identifiers, values, and filenames:
python -B scripts/query_semantic_okf_tika_mallet.py BUNDLE search --query "invoice 2026-041" --mode bm25 --top-k 10
Conceptual MALLET topic expansion:
python -B scripts/query_semantic_okf_tika_mallet.py BUNDLE search --query "document retention and audit evidence" --mode topic --top-k 10
Two-step PPMI association propagation:
python -B scripts/query_semantic_okf_tika_mallet.py BUNDLE search --query "spreadsheet validation" --mode association --top-k 10
Reciprocal-rank fusion of all three independent rankings:
python -B scripts/query_semantic_okf_tika_mallet.py BUNDLE search --query "compare extraction acceptance criteria" --mode fusion --top-k 10
Several broad queries with one snapshot validation and compact exact evidence:
python -B scripts/query_semantic_okf_tika_mallet.py BUNDLE batch-search --query "community retrieval" --query "hierarchical synthesis" --mode fusion --top-k 8 --evidence-only
Create a bounded support pack, then compile a support-ID draft:
python -B scripts/query_semantic_okf_tika_mallet.py BUNDLE answer-pack \
--query "community retrieval" --query "hierarchical synthesis" \
--query "direct entity or chunk retrieval" --mode fusion --top-k 6 \
--max-sources 10 --output /tmp/answer-pack.json
python -B scripts/query_semantic_okf_tika_mallet.py BUNDLE finalize-answer \
--pack /tmp/answer-pack.json --draft /tmp/answer-draft.json \
--output /tmp/final-answer.json
Repeat --source-id, --concept-id, or --concept-type for unions within that
filter. Different filter kinds combine with logical AND.
Before answering, confirm:
validate-answer, including exact nested
evidence copies and complete first-use order, or was compiled and passed by
finalize-answer;agents/openai.yaml (opens in a new tab)references/querying.md (opens in a new tab)references/tika-mallet-format.md (opens in a new tab)scripts/_mallet_topics.py (opens in a new tab)scripts/_safe_paths.py (opens in a new tab)scripts/_tika_mallet_snapshot.py (opens in a new tab)scripts/_tika_snapshot.py (opens in a new tab)scripts/query_semantic_okf_tika_mallet.py (opens in a new tab)scripts/requirements.in (opens in a new tab)scripts/requirements.txt (opens in a new tab)scripts/runtime_smoke.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gvillarroel/plugins --plugin semantic-search12 skills in this plugin
/build-semantic-okf-rust-malletBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus a non-authoritative retrieval projection with RustMallet sparse-Gibbs LDA, Bag of Words, Okapi BM25, PPMI query expansion, and diversity-aware reranking. Use when Codex needs fixed-seed probabilistic topics without embeddings or hosted model calls, or needs to compare RustMallet against deterministic classical topic communities. This standalone skill owns construction only and never answers from a published snapshot./build-semantic-okf-rust-mallet-evolvedBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus a non-authoritative retrieval projection with RustMallet sparse-Gibbs LDA, Bag of Words, Okapi BM25, PPMI query expansion, and diversity-aware reranking. Use when Codex needs fixed-seed probabilistic topics without embeddings or hosted model calls, or needs to compare RustMallet against deterministic classical topic communities. This standalone skill owns construction only and never answers from a published snapshot./build-semantic-okf-tantivyBuilds and independently validates an atomic Semantic OKF/RDF snapshot plus the deterministic, non-authoritative classical projection consumed by the frozen Tantivy BM25 consultant. Use when Codex must construct, reproduce, diagnose, or optimize a snapshot specifically for consult-semantic-okf-tantivy without modifying the frozen consultation skill. This standalone skill owns construction only and never answers from a published snapshot.Other plugins' skills for the same job