Module: Insika::Knowledge::Index
- Defined in:
- lib/insika/knowledge.rb
Overview
Retrieval's index: a PORT with two adapters, selected by config —
the same "config over code" shape Sandbox.provider_for uses. Unlike
Sandbox (a security boundary, so an unknown value is a loud error),
an unrecognized or not-yet-built index name degrades to Scan rather
than failing the turn: retrieval is a quality feature, never a boot
blocker (RFC §3.7's own described FTS5-absent fallback).
Defined Under Namespace
Classes: Scan
Class Method Summary collapse
-
.build(config, store:) ⇒ Object
config: the agent's
knowledgehash.
Class Method Details
.build(config, store:) ⇒ Object
config: the agent's knowledge hash. -> an object responding to
#search(agent_id, tenant:, query:, top_k:).
511 512 513 514 515 516 |
# File 'lib/insika/knowledge.rb', line 511 def build(config, store:) case (config && config["index"]).to_s when "fts5" then Scan.new(store: store) # PR 4 — not built yet, same fallback else Scan.new(store: store) end end |