Skip to main content

Reasoning Bank Service

Table of Contents

distillRationales

Periodically reviews feedback tables and distills abstractive rationales into the reasoning_bank. This is a conceptual implementation. The actual distillation logic would be complex and LLM-powered.

Returns Promise<void> A promise that resolves when the distillation process is complete.

retrieveRelevantRationales

Conceptually retrieves relevant rationales from the ReasoningBank. In a real implementation, this would involve querying the reasoning_bank table based on context (e.g., tenantId, current query, decision type).

Parameters

  • options object Options for retrieving rationales.

    • options.tenantId string The ID of the tenant.
    • options.context object The current context for which rationales are needed.
    • options.decisionType string The type of decision being made.

Returns [Promise][4]<[Array][7]<[object][5]>> A promise that resolves to an array of relevant rationales.