/semantic-search:consult-semantic-okf-tika-mallet-tantivyfrom 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 modeled with Java MALLET 2.1.0, using Tantivy 0.26.0 native Rust BM25 for in-memory lexical ranking plus MALLET topic expansion, PPMI association search, and reciprocal-rank fusion. Use for format-aware provenance review, fast model-free search, topic-assisted discovery, retrieval comparison, or exact grounded reading of a Tika/MALLET snapshot. This standalone skill is read-only and 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.
Validate the complete Tika extraction and MALLET projection, rank filtered passages through an ephemeral Tantivy index, and ground every factual statement in an authoritative Semantic OKF concept, ledger record, or selected RDF graph.
k1=1.2 and b=0.75, and Tantivy 0.26.0.2.1.0 distribution.
Retrain only in temporary storage outside the immutable bundle.tantivy for exact lexical discovery,
topic for MALLET-assisted vocabulary, association for PPMI neighbors, or
fusion to combine all three rankings. Preserve the requested and effective mode.batch-search for several broad queries. For a bounded answer, use
one answer-pack call, draft claims with its support IDs, then run
finalize-answer. Write these derived JSON files only to new paths outside the
bundle.concept_path. In a source-packed build, open
concepts/<source_id>.md; always resolve the locator against
semantic/records.jsonl, verify returned text and hashes, and never rewrite
the logical identity.python -m pip install -r scripts/requirements.txt
python -B scripts/runtime_smoke.py
python -B scripts/query_semantic_okf_tika_mallet_tantivy.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_tantivy.py BUNDLE inspect \
--deep-validation --java JAVA --mallet-home MALLET_HOME
Ordinary inspection and search require neither Java nor Tika. Deep validation requires Java and MALLET but validates the persisted Tika receipt rather than re-extracting source files.
Native Tantivy BM25 with syntax-free query normalization:
python -B scripts/query_semantic_okf_tika_mallet_tantivy.py BUNDLE search \
--query "invoice 2026-041" --mode tantivy --top-k 10
MALLET topic-assisted retrieval:
python -B scripts/query_semantic_okf_tika_mallet_tantivy.py BUNDLE search \
--query "document retention and audit evidence" --mode topic --top-k 10
PPMI association retrieval:
python -B scripts/query_semantic_okf_tika_mallet_tantivy.py BUNDLE search \
--query "spreadsheet validation" --mode association --top-k 10
Reciprocal-rank fusion of native Tantivy, association, and topic routes:
python -B scripts/query_semantic_okf_tika_mallet_tantivy.py BUNDLE search \
--query "compare extraction acceptance criteria" --mode fusion --top-k 10
Use Tantivy query syntax only when intentional. Quoted phrases, field selectors, grouping, and uppercase Boolean operators preserve explicit syntax; regex queries are disabled. Syntax-free natural text is bounded to the persisted unigram lexicon.
Repeat --source-id, --concept-id, or --concept-type to form a union within one
filter kind. Different filter kinds combine with logical AND.
python -B scripts/query_semantic_okf_tika_mallet_tantivy.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 ANSWER_PACK.json
python -B scripts/query_semantic_okf_tika_mallet_tantivy.py BUNDLE finalize-answer \
--pack ANSWER_PACK.json --draft ANSWER_DRAFT.json --output FINAL_ANSWER.json
Copy support IDs rather than retyping evidence identities. finalize-answer
constructs first-use evidence indices and validates exact paths, hashes, locators,
and selected passages. Use validate-answer for a manually assembled response.
Before answering, confirm:
0.26.0, native Rust BM25, in-memory storage,
tokenizer, boosts, indexed count, lexical queries, expansions, and modes;agents/openai.yaml (opens in a new tab)references/querying.md (opens in a new tab)references/tantivy-runtime.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_tantivy_snapshot.py (opens in a new tab)scripts/_tika_snapshot.py (opens in a new tab)scripts/query_semantic_okf_tika_mallet_tantivy.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
12 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.Other plugins' skills for the same job
/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.npx claudepluginhub gvillarroel/plugins --plugin semantic-search