Skip to content

okfctl-search command reference

okfctl-search is the semantic search plugin that ships with every okfctl release. This page lists each of its commands and flags, with the same text okfctl-search <cmd> --help prints. Flags set on okfctl-search itself (--embedder, --model-path, --k) also apply to its subcommands.

Offline semantic search over an OKF bundle (okfctl plugin)

okfctl-search [flags]

Flags:

--decay-floor float lower clamp on the recency multiplier 0.5^(age/half-life) (0 = unbounded decay) (default 0.25)
--embedder string embedder: hash (offline default) | model2vec (local static model) (default "hash")
--half-life float recency half-life in days (0 = no decay); combine with --min-relevance and --decay-floor to bound how far recency reorders results
--k int max results (default 5)
--lexical-gate gate semantic results by a term-wise lexical match, preserving lexical recall (off by default; no-op on all-stopword or over-broad queries)
--min-relevance float drop results whose RAW cosine is below this before decay reorders (0 = admit everything)
--model-path string model2vec model directory (overrides the model_path config key)
--not-path stringArray exclude nodes whose path starts with this prefix (repeatable)
--not-tag stringArray exclude nodes carrying this tag (repeatable)
--not-type stringArray exclude nodes with this type (repeatable)
--path stringArray restrict to nodes whose path starts with this prefix (repeatable; repeats OR together)
--semantic string semantic query string
--tag stringArray restrict to nodes carrying this tag (repeatable; repeats OR together)
--type stringArray restrict to nodes with this type (repeatable; repeats OR together)

Manage the semantic index

Embed changed concept nodes into .okfctl/index.db

okfctl-search index build [bundle-dir]

Show a node’s nearest semantic neighbors

okfctl-search related <node-path> [bundle-dir]

Made by Casey West.