How to use CSET: store an answer the safe way
CSET writes an answer into the semantic cache, running the five-stage anti-poisoning pipeline before it accepts anything.
Topic · 23 posts
How to use every Crowkis command from the crowkis cli, one focused page at a time.
CSET writes an answer into the semantic cache, running the five-stage anti-poisoning pipeline before it accepts anything.
CGET finds a cached answer by meaning, not exact bytes, and can return the confidence behind the hit so you decide whether to trust it.
CSIM returns the semantic similarity between two strings, the primitive behind every hit decision, exposed so you can calibrate thresholds.
CVECCOUNT returns the live entry count in the vector index, the quickest health signal for a semantic cache.
CFLUSH empties the semantic cache, globally, or scoped to a single tenant so one customer's reset doesn't touch another's.
CTHINK stores a reasoning trace as a reusable step graph; CREUSE fetches the matching plan for a new query at a fraction of the token cost.
CSTALE returns a cached answer even past its TTL, flagged as stale, so an expired entry is a snappy answer plus a refresh signal, not a cold miss.
CINVALIDATE clears entries whose meaning matches a natural-language instruction, and previews exactly what it would remove until you add COMMIT.
CWHYEVICT explains the retention maths for an entry, recency, frequency, isolation, and cost, so eviction is auditable, not mysterious.
CFLAG records a known-bad answer in the negative cache; CCHECKBAD catches every paraphrase of the question that would reproduce it.
CPIN pins a golden answer that's served word-for-word for matching questions, with an audit trail of who approved it.
CSOURCE links cache entries to the source they derived from, so when the source changes you can purge everything built on it in one move.
CTOOLSET caches a tool result keyed by tool plus exact arguments; CTOOLGET returns it, so a deterministic call runs once and serves many.
CDOC adds documents with auto-chunking and metadata, then searches them with filters and optional reranking, no separate vector database.
CSESSION stores a multi-turn conversation, reads the recent window, and semantically searches the whole thing, so 'as I mentioned earlier' works.
CMEMSET stores a fact scoped to (agent, user); CMEMGET recalls by meaning, recency-blended; consolidation retires contradictions automatically.
CGUARD checks a prompt for jailbreaks and injections, normalizing leetspeak and zero-width tricks first, and returns a verdict, category, and match.
COUTCHECK scans a response for PII and toxicity, optionally validating JSON, and returns the entities found so you can redact, block, or regenerate.
CEVAL runs deterministic evaluators, toxicity, PII, relevance, JSON validity and more, over an input/output pair, and tracks the results on /metrics.
CPROMPT stores named prompt templates with versioning, variable rendering, sticky A/B splits, and rollback, all from the CLI, all surviving restart.
CBUDGET reports token and dollar consumption per tenant in real time, and surfaces the tenants approaching or crossing their thresholds.
CDEDUP finds entries that mean the same thing and collapses them, reporting clusters and memory reclaimed, best run as off-peak maintenance.
CINFO returns server, cache, savings, security, db, and license sections in one call, the fastest read on what the cache is doing right now.