/semantic-search:build-semantic-okf-rust-mallet-evolvedfrom semantic-search
Builds 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.
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.
Build one authoritative Semantic OKF core and one local RustMallet discovery projection as a single validated release. Keep passages, lexical statistics, probabilistic topics, and association edges outside the ledger and RDF graphs.
classical/ as non-authoritative discovery data. Keep concepts/, semantic/records.jsonl, and purpose-selected RDF graphs authoritative.scripts/requirements.txt. It pins pyrmallet==0.1.1; training is local and requires no model download or hosted request.Never accept unknown plan members, implicit defaults, partial source selection, stale hashes, unsafe paths, approximate locators, non-deterministic output, or topics presented as ontology truth.
Run from this skill directory, or prefix scripts with the copied skill root:
python scripts/build_semantic_okf_rust_mallet.py manifest.json rust-mallet-plan.json semantic-okf-rust-mallet --concept-layout source-packed-v1 --output-format json
python scripts/validate_semantic_okf_rust_mallet.py semantic-okf-rust-mallet --output-format json
The destination must not exist. A successful release contains the complete core and exactly six classical files:
The recommended source-packed layout combines repeated CSV, JSON, and RDF records into one authoritative Markdown collection per source. Logical concept paths, ledger records, evidence locators, reference IDs, and RustMallet ranking content remain record-specific. Core-bound indexes, reports, and reference dictionaries are regenerated for the new physical tree.
semantic-okf-rust-mallet/
index.md
concepts/
semantic/
classical/
index.json
documents.jsonl
lexicon.json
associations.jsonl
topics.json
build-report.json
documents.jsonl uses exact full-record or character-range locators. lexicon.json persists Bag-of-Words, document-frequency, corpus-frequency, inverse-document-frequency, and BM25 length statistics. associations.jsonl persists bounded positive-PMI neighbors. topics.json persists RustMallet topic-word probabilities, a deterministic argmax term mapping, and document-topic distributions. The index binds all four artifacts to the authoritative tree, selected inputs, complete plan, and pyrmallet==0.1.1 algorithm identity.
Before delivery, confirm:
agents/openai.yaml (opens in a new tab)references/coherence-contract.md (opens in a new tab)references/manifest.md (opens in a new tab)references/python-runtime.md (opens in a new tab)references/rust-mallet-format.md (opens in a new tab)references/rust-mallet-plan.md (opens in a new tab)references/source-combination.md (opens in a new tab)scripts/_build_semantic_okf_core.py (opens in a new tab)scripts/_rust_mallet_retrieval.py (opens in a new tab)scripts/_semantic_okf.py (opens in a new tab)scripts/build_semantic_okf_rust_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)scripts/validate_okf_bundle.py (opens in a new tab)scripts/validate_semantic_okf_rust_mallet.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-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
/build-semantic-okf-tika-malletBuilds and independently validates an atomic Semantic OKF snapshot from local PDF, Office, archive, media, or other files extracted by Apache Tika 4.0.0-beta-1, then add a non-authoritative Java MALLET 2.1.0 topic, BM25, PPMI, and fusion retrieval projection. Use when Codex needs to experiment with Tika's new default Markdown output, test heterogeneous document ingestion, or compare fixed-seed MALLET topics while preserving OKF authority and provenance. This standalone experimental skill builds only; it never consults or answers from published knowledge.npx claudepluginhub gvillarroel/plugins --plugin semantic-search