CoolFace
Apppublic

AR21SM/krkn-scenario-discovery

sourceHugging Faceapache-2.0updated 8mo agoView on Hugging Face
0likes
App README

krkn Scenario Discovery

Lightweight, deterministic dual-signal retrieval engine for chaos engineering scenario discovery.

Matches natural-language queries to krkn chaos scenarios in under 50ms with no GPU or LLM needed.

API Endpoints

MethodEndpointDescription
POST/discoverMatch a query to chaos scenarios
GET/healthHealth check
GET/docsInteractive Swagger UI

Example

bash
curl -X POST https://AR21SM-krkn-scenario-discovery.hf.space/discover \
  -H "Content-Type: application/json" \
  -d '{"query": "stress the CPU on my nodes", "top_k": 3}'

Architecture

  • —BM25F field-weighted keyword matching with 75+ chaos synonyms
  • —Semantic search via all-MiniLM-L6-v2 (ONNX, CPU-only, ~15ms)
  • —RRF fusion with adaptive weighting based on query type
  • —OOD detection rejects out-of-scope queries

92% Precision@1 on held-out test set.

Source: GitHub