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
-
optionsobject Options for retrieving rationales.
Returns [Promise][4]<[Array][7]<[object][5]>> A promise that resolves to an array of relevant rationales.