default
chainalign-backend / services/ReasoningBankService / default
Class: default
Defined in: services/ReasoningBankService.js:13
Constructors
Constructor
new default():
ReasoningBankService
Returns
ReasoningBankService
Methods
distillRationales()
staticdistillRationales():Promise<void>
Defined in: services/ReasoningBankService.js:19
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()
staticretrieveRelevantRationales(options):Promise<any[]>
Defined in: services/ReasoningBankService.js:100
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
Options for retrieving rationales.
context
any
The current context for which rationales are needed.
decisionType
string
The type of decision being made.
tenantId
string
The ID of the tenant.
Returns
Promise<any[]>
A promise that resolves to an array of relevant rationales.