Files
Ilker ManapandClaude Opus 5.5 0093cc3d45 Collections a part of the tree answers from when a request names none
On an organization, team, project or key, the narrowest winning: llmgw ctl
kb default, POST /api/v1/kb/defaults, and the console's Knowledge screen. A
request's own X-Llmgw-Knowledge overrides it and none turns it off. A default
never refuses a request: a collection the caller cannot read is left out, and
a failed search answers without passages. Removing a collection takes it out
of every default.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 15:52:43 +02:00

13 lines
498 B
SQL

-- The collections a part of the tree answers from when a request names
-- none (BACKLOG F3): on an organization, team, project or key, the narrowest
-- one that has any winning. PostgreSQL only, as the collections are.
CREATE TABLE kb_defaults (
scope TEXT NOT NULL,
scope_id TEXT NOT NULL,
-- Collection IDs, comma separated, in the order given.
collections TEXT NOT NULL,
added_at BIGINT NOT NULL,
added_by TEXT NOT NULL DEFAULT '',
PRIMARY KEY (scope, scope_id)
);